Junos OS

Expand all | Collapse all

SRX 240

Jump to Best Answer
  • 1.  SRX 240

    Posted 02-22-2018 20:35

    Hello guys, how to configure email notifications in SRX 240 if something has been blocked?

     

     


    #emailnotifications
    #SRX


  • 2.  RE: SRX 240

     
    Posted 02-22-2018 20:45


  • 3.  RE: SRX 240

    Posted 02-22-2018 20:54

    Thanks, Karan.

    In your 2nd link, it has this option:

    If the need is to monitor which virus is getting detected, syslogs can be configured as follows:


    syslog {
         file antivirus-log {
             any any;
                  match RT_UTM-AV;
           }
     }

     

    Are you able to give a guide on how to configure syslog on SRX240?

    Thanks.



  • 4.  RE: SRX 240

     
    Posted 02-22-2018 21:15

    JJJCR,

     

    setting syslogs is simple..

    > set system syslog host X.X.X.X any any (all facilities all level)

     

    Follow this KB (syslog) for system & traffic logging

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB16634&actp=METADATA

     

     

     

     

     



  • 5.  RE: SRX 240

    Posted 02-22-2018 22:12

    Hi Karand,

    Sending Logs to a Remote Syslog Server

     

    In the following configuration example, log messages are sent to a remote syslog server (192.30.80.76😞

    user@host# set system syslog host 192.30.80.76 any any
     
    Is below  the correct equivalent of the above command?
     
    syslog {
    file qflogs {
    }
    host 192.30.90.76 {
    any any;
      }
    }
    Is there a link on how to convert those english command to a command with  open and close brackets? (sorry don't know how to call it)
    Thank you.


  • 6.  RE: SRX 240

     
    Posted 02-22-2018 22:33

    JJJCR,

     

    Yes, that config is correct in order to send the logs to a remote syslog server.

    You may want to add source address & structured-date if required 

     

    set system syslog host x.x.x.x source-address x.x.x.x structured-data

     

    Regarding "convert those english command to a command with  open and close brackets?" Did you meant display set?

     

    re0> show configuration system syslog | display set
    set system syslog host x.x.x.x any any

    set system syslog file messages any any

     

     

     

     

     

     

     

     



  • 7.  RE: SRX 240
    Best Answer

     
    Posted 02-22-2018 22:37

    To add more to your previous query, you can display the config in the formats:

     

    re0# show system syslog | display ?
    Possible completions:
    changed Tag changes with junos:changed attribute (XML only)
    commit-scripts Show data after commit scripts have been applied
    detail Show configuration data detail
    inheritance Show inherited configuration data and source group
    json Show output in JSON format
    mark-changed Tag changes with junos:mark-changed attribute (XML only)
    max-depth Maximum depth of configuration data
    max-version Maximum version of configuration data
    merge Merge multiple instances of database
    omit Emit configuration statements with the 'omit' option
    rfc5952 Display IPv6 addresses as per RFC 5952 specifications
    set Show 'set' commands that create configuration
    xml Show output as XML tags