Junos OS

last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  JunOS: Forward all but Traffic Logs to Syslog Server

    Posted 03-07-2012 01:03

    Hi,

    I'd like to know how to configure Log forwarding on the JunOS device to forward all but Traffic logs. This is what my config looks like:

    set system syslog host 192.168.2.21 any any
    set system syslog host 192.168.2.21 facility-override authorization
    [edit system syslog host 192.168.2.21]

     

    with 192.168.2.21 beeing my Syslog Server obviously.

     

    How do you do this in JunOS? 


    #syslogtrafficforwardingjunos


  • 2.  RE: JunOS: Forward all but Traffic Logs to Syslog Server

    Posted 03-07-2012 07:16

    hi alex...

    if you are asking how to code for loging some info from your device on your remote server, have not you replied it yourself.... i mean this is how it is::

    set system syslog host <ip-address> <faclity> <severity level>

    faclity -> u have to decide yourself like authorization, interactive comands, change-log or any

    severity-> again u have to decide like info, error, any

    (Although any any will generate too much of logs, so its better to be specific)....

    So isnt it what u askd and replied??? or am i mistaken to get your question????



  • 3.  RE: JunOS: Forward all but Traffic Logs to Syslog Server

    Posted 03-07-2012 07:47

    I'd like to log everything except traffic logs. Thats not so hard to understand, is it? 



  • 4.  RE: JunOS: Forward all but Traffic Logs to Syslog Server
    Best Answer

     
    Posted 03-07-2012 08:44


  • 5.  RE: JunOS: Forward all but Traffic Logs to Syslog Server

    Posted 03-07-2012 09:17

    That worked, thanks Ulf!

     

    (You really need the quotes in the match statement! My mistake trying to make a filter without the quotes ", it will end up in a filter called match "!", which is senseless) 



  • 6.  RE: JunOS: Forward all but Traffic Logs to Syslog Server

    Posted 03-07-2012 09:19

    to finalize it, filter for "RT_FLOW_SESSION" which is the keyword for traffic