mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -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:
|
||||
- /var/log/apache2/error.log
|
||||
filters:
|
||||
grok:
|
||||
- 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}
|
||||
- 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:
|
||||
# For this demo, we'll write to websockets...
|
||||
- stdout:///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue