Skip to content

Commit

Permalink
Update pillar.example (#31)
Browse files Browse the repository at this point in the history
added a few mutate examples in filters.
  • Loading branch information
absmith82 authored and aboe76 committed Sep 6, 2018
1 parent 54daa31 commit 9c580bb
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,28 @@ logstash:
match:
- 'syslog_timestamp'
- 'MMM d HH:mm:ss'
- 'MMM dd HH:mm:ss'
- 'MMM dd HH:mm:ss'
-
plugin_name: mutate
cond: 'if [type] == "syslog"'
gsub:
- "message"
#extra escape charactor required to write from pillar to logstash config
- "\\/"
- "_"
-
plugin_name: mutate
cond: 'if [type] == "syslog"'
remove_field:
- starting
- ending
-
plugin_name: mutate
cond: 'if [type] == "syslog" and "apache" in [source]'
add_field:
user: "%{auth}"
remove_field: ["auth"]

outputs:
-
plugin_name: lumberjack
Expand Down

0 comments on commit 9c580bb

Please sign in to comment.