Created
May 3, 2019 16:30
-
-
Save sruthirameshv/4f781d172bad5590ca3a30215de50862 to your computer and use it in GitHub Desktop.
This file contains 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
<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