SRX Services Gateway
Highlighted
SRX Services Gateway

syslog server configuration with Branch SRX 210 H

‎05-19-2010 08:22 AM

Hi,

I am trying to configure SYSLOG Server with Branch SRX 210-H.

Kindly help me out….

 

Also suggest preferable syslog server.

 

Regards,

VKG

5 REPLIES 5
SRX Services Gateway

Re: syslog server configuration with Branch SRX 210 H

‎05-19-2010 10:39 AM

I would suggest reading http://kb.juniper.net/KB16509 for configuration guidance and using SPLUNK as a Syslog Server

 

Xavi

SRX Services Gateway

Re: syslog server configuration with Branch SRX 210 H

[ Edited ]
‎05-19-2010 11:00 AM

Very good article indeed...

 

based on the following

 

  • Date and time of the message
  • Message type (session-init or session-close)
  • Source address and port number
  • Destination address and port number
  • IP information
  • Session index (sid)
  • Policy index (pid)
  • Bytes sent and received
  • Session duration
  •  

    Is it possible to segregate session-init / session-close from deny and permit policies? 

     

    Based on this output...  it wouldn't seem as if it isnt but IMA newb so... 

     

    It would be nice to seperate the two into two files, one for policy default-permit, and one for policy default-deny scenarios.

     

    user@host> show log messages | match RT_FLOW_SESSION
     
    Dec 23 15:01:41 test RT_FLOW: RT_FLOW_SESSION_CLOSE: session closed TCP RST: 19
    2.168.10.60/3933->172.24.60.143/80 junos-http 172.24.30.178/8280->172.24.60.143/
    80 interface-nat None 6 http-out trust untrust 7188 8(2698) 5(525) 2

     

    EDIT:  I acutally found that this is pretty easy as the RT_FLOW_SESSION_DENY is the flag for a policy that is defined as a deny / log...  Just not the implicit deny at the end of all policy chains.

     

     

     

    SRX Services Gateway

    Re: syslog server configuration with Branch SRX 210 H

    ‎05-25-2010 06:15 AM

    Hi Xhoms,

    Thanks for your reply…!

    I have been configured as KB16509 with SPLUNK as a syslog server, But I unable to configure splunk perfectly (unable to gather log in syslog indexing)…could you help me to configure splunk  

      

    Kindly oblige to guide me.

     

    Thanks

    VKG

    SRX Services Gateway

    Re: syslog server configuration with Branch SRX 210 H

    ‎05-25-2010 10:35 AM

    I'n not a SPLUNK expert but I got my instance work as a Syslog server just adding a UDP data input in the port 514 of type Syslog

     

    Splunk -> Manager -> Data Inputs -> UDP

    port: 514

    Source Type: syslog

     

    The experience with Splunk is much better if you use the "structured syslog format" in the SRX side

     

    admin@SRX-240-1# show security log

    mode stream;

    format sd-syslog;

    source-address 192.168.1.2;

    stream splunk {

      host {

        95.17.163.67;

        }

      }

    SRX Services Gateway
    Solution
    Accepted by topic author VinodGupta
    ‎08-26-2015 01:27 AM

    Re: syslog server configuration with Branch SRX 210 H

    ‎05-28-2010 06:46 AM

    Hi Xhoms,

    I followed you and just gathered all structured logs in SPLUNK perfectly.

    Indeed Thanks…!

     

    Regards,

    Vinod Gupta