SRX

 View Only

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



  • 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.