Skip to content

Instantly share code, notes, and snippets.

@sruthirameshv
Created May 3, 2019 16:30
Show Gist options
  • Save sruthirameshv/4f781d172bad5590ca3a30215de50862 to your computer and use it in GitHub Desktop.
Save sruthirameshv/4f781d172bad5590ca3a30215de50862 to your computer and use it in GitHub Desktop.
<source>
@type syslog
port 5140
bind 0.0.0.0
protocol_type udp
tag syslog
</source>
<filter syslog.**>
@type grep
<exclude>
key message
pattern ldapd
</exclude>
</filter>
<match syslog.**>
@type route
remove_tag_prefix syslog
<route **>
add_tag_prefix coloNetwork
copy
</route>
<route **>
add_tag_prefix ucslog
copy
</route>
</match>
<filter coloNetwork.**>
@type grep
<exclude>
key message
pattern /%UCSM-\d-([A-Z_]+)/
</exclude>
</filter>
<match coloNetwork.**>
@type stdout
</match>
<match ucslog.**>
@type file
path /var/log/test_syslog/file1.txt
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment