SRX

last person joined: 10 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  SRX240 SYSLOG SERVER. PASSING HOSTNAME WITH SYSLOG OUTPUT

    Posted 06-01-2011 08:33

    Hi, I have a syslog server that the SRX's are logging to. This works but I need to differentiate between the SRX devices on the syslog server, as I am logging to one log file.

    How can I get the SRX's to send its hostname along with the syslog messages?

     

    Is there an equivalent command for: logging origin-id <hostname> 



  • 2.  RE: SRX240 SYSLOG SERVER. PASSING HOSTNAME WITH SYSLOG OUTPUT
    Best Answer



  • 3.  RE: SRX240 SYSLOG SERVER. PASSING HOSTNAME WITH SYSLOG OUTPUT

    Posted 06-01-2011 15:52

    Your syslog server knows which device it is receiving the log messages from (based on the source address in the IP header).  You should be able to tell it to include that information in the log message.

     

    :w

     



  • 4.  RE: SRX240 SYSLOG SERVER. PASSING HOSTNAME WITH SYSLOG OUTPUT

    Posted 06-01-2011 19:40

    1. Use "log-prefix" keyword to append a certain hostname in addition to the log (as given in above KB)

     

    2. Write your SRX hostname in /etc/hosts on linux box

     

    3. Use "facility-override" option to set all SRX boxes to send syslogs with same syslog-facility; this way you can differentiate SRX syslogs from the other devices e.g. all SRX boxes send syslogs with facility local4 and all EX-series devices send syslog with faclity local3

     

    regards


    #Acceptedsolution


  • 5.  RE: SRX240 SYSLOG SERVER. PASSING HOSTNAME WITH SYSLOG OUTPUT

    Posted 06-07-2011 03:50

    Hi thanks all for you replies. Much appreciated. Ill try the log-prefix method and let you know.

    Thanks again



  • 6.  RE: SRX240 SYSLOG SERVER. PASSING HOSTNAME WITH SYSLOG OUTPUT

    Posted 06-09-2011 01:53

    Ramus hi

     

    That worked a treat thanks.