forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
108 additions
and
95 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Example config that reads parsed logs from AMQP and dumps results into mongodb | ||
inputs: | ||
- amqp://localhost/topic/parsedlogs | ||
outputs: | ||
- mongodb://localhost/parsedlogs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Example config that parses rawlogs with grok and puts them on another AMQP topic | ||
inputs: | ||
- amqp://localhost/topic/rawlogs | ||
outputs: | ||
- amqp://localhost/topic/parsedlogs | ||
- stdout:/// | ||
filters: | ||
grok: | ||
linux-syslog: # for logs tagged 'linux-syslog' | ||
timestamp: | ||
key: date | ||
format: %b %e %H:%M:%S | ||
patterns: | ||
- %{SYSLOGLINE} | ||
apache-access: # for logs tagged 'apache-error' | ||
timestamp: | ||
key: timestamp | ||
format: %d/%b/%Y:%H:%M:%S %Z | ||
patterns: | ||
- %{COMBINEDAPACHELOG} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Example config that reads parsed logs from AMQP and prints to stdout | ||
inputs: | ||
- amqp://localhost/topic/parsedlogs | ||
#filters: | ||
#field: | ||
#- progname.include?("tester") | ||
outputs: | ||
- stdout:/// |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
configname: shipper | ||
# Example config that only ships log data from files to an AMQP topic | ||
inputs: | ||
linux-syslog: | ||
- /var/log/messages | ||
- /var/log/kern.log | ||
- /var/log/auth.log | ||
- /var/log/user.log | ||
apache-access: | ||
- /var/log/apache2/access.log | ||
- /b/access | ||
apache-error: | ||
- /var/log/apache2/access.log | ||
unknown: | ||
- /b/randomdata | ||
outputs: | ||
- amqp://localhost/topic/rawlogs |
This file was deleted.
Oops, something went wrong.