mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- Update to work with latest code
This commit is contained in:
parent
2053ceabcb
commit
2ac9f69c55
1 changed files with 8 additions and 7 deletions
|
@ -16,19 +16,20 @@ inputs:
|
||||||
apache-error:
|
apache-error:
|
||||||
- /var/log/apache2/error.log
|
- /var/log/apache2/error.log
|
||||||
filters:
|
filters:
|
||||||
grok:
|
- grok:
|
||||||
linux-syslog: # for logs tagged 'linux-syslog'
|
linux-syslog: # for logs tagged 'linux-syslog'
|
||||||
timestamp:
|
|
||||||
key: date
|
|
||||||
format: %b %e %H:%M:%S
|
|
||||||
patterns:
|
patterns:
|
||||||
- %{SYSLOGLINE}
|
- %{SYSLOGLINE}
|
||||||
apache-access: # for logs tagged 'apache-error'
|
apache-access: # for logs tagged 'apache-error'
|
||||||
timestamp:
|
|
||||||
key: timestamp
|
|
||||||
format: %d/%b/%Y:%H:%M:%S %Z
|
|
||||||
patterns:
|
patterns:
|
||||||
- %{COMBINEDAPACHELOG}
|
- %{COMBINEDAPACHELOG}
|
||||||
|
- date:
|
||||||
|
linux-syslog: # for logs tagged 'linux-syslog'
|
||||||
|
# Look for a field 'timestamp' with this format, parse and it for the timestamp
|
||||||
|
# This field comes from the SYSLOGLINE pattern
|
||||||
|
timestamp: %b %e %H:%M:%S
|
||||||
|
apache-access:
|
||||||
|
timestamp: "%d/%b/%Y:%H:%M:%S %Z"
|
||||||
outputs:
|
outputs:
|
||||||
# For this demo, we'll write to websockets...
|
# For this demo, we'll write to websockets...
|
||||||
- stdout:///
|
- stdout:///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue