Created
June 12, 2014 21:37
-
-
Save mrlesmithjr/2e595799344a273af952 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if "10.0.101.1" in [msgsource_ip] { | |
| mutate { | |
| add_field => [ "devtype", "JUNIPER" ] | |
| add_tag => "JUNIPER" | |
| } | |
| } | |
| if [message] =~ "RT_FLOW_SESSION_CREATE" { | |
| if "JUNIPER" in [tags] { | |
| mutate { | |
| add_tag => "FLOWCREATE" | |
| } | |
| } | |
| } | |
| if [message] =~ "RT_FLOW_SESSION_DENY" { | |
| if "JUNIPER" in [tags] { | |
| mutate { | |
| add_tag => "FLOWDENY" | |
| } | |
| } | |
| } | |
| if "FLOWCREATE" in [tags] { | |
| grok { | |
| match => [ "message", ".*session created %{IP:src_addr}/%{DATA:src_port}->%{IP:dst_addr}/%{DATA:dst_port} %{DATA:service} %{IP:nat_src_ip}/%{DATA:nat_src_port}->%{IP:nat_dst_ip}/%{DATA:nat_dst_port} %{DATA:src_nat_rule_name} %{DATA:dst_nat_rule_name} %{INT:protocol_id} %{DATA:policy_name} %{DATA:from_zone} %{DATA:to_zone} %{INT:session_id} .*" ] | |
| } | |
| } | |
| if "FLOWDENY" in [tags] { | |
| grok { | |
| match => [ "message", ".*session denied %{IP:src_addr}/%{DATA:src_port}->%{IP:dst_addr}/%{DATA:dst_port} %{DATA:service} %{INT:protocol_id}\(\d\) %{DATA:policy_name} %{DATA:from_zone} %{DATA:to_zone} .*" ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment