book
                        
Article ID: CTX200908
                        
                    
                    
                        calendar_today
                        
Updated On: 
                    
                 
                
                    
                
                    
                    
                        
                            
Description
                        
                        
                            This article describes how to create a message action that can be bound to a responder or rewrite policy that logs to syslog in NetScaler.
Instructions
Complete the following steps to create a message action that can be bound to a responder or rewrite policy that logs to syslog on the NetScaler:
- Create a syslog server on NetScaler if needed for remote logging use.
- NetScaler already uses 127.0.0.1 for the IP of the internal syslog server in the appliance.
- Ensure the time zone is correctly set to local.
- Verify TCP logging, ACL logging, and User Configurable Log Messages are enabled.
- Create a policy that links to your preferred syslog server object.
- Bind the syslog server object globally or to the virtual server that you are hitting.
Follow the below instructions to achieve.
- Set audit syslogParams -userDefinedAuditlog YES
- Add audit messageaction log-act1 CRITICAL "\"Client:\"+CLIENT.IP.SRC+\" accessed \"+HTTP.REQ.URL+\" ON \"+HTTP.REQ.LB_VSERVER.NAME"
- Add rewrite policy rewrite_logs true NOREWRITE -logAction log-act1
- Bind cs vserver linux_cserver -policyName rewrite_logs -priority 110 -gotoPriorityExpression END -type REQUEST
 
                     
                    
                    
                    
                    
                    
                        
                            
                                
Issue/Introduction
                            
                            
                                This article describes how to create a message action that can be bound to a responder or rewrite policy that logs to syslog on the NetScaler.