Hi,
Logs:
[2017-05-25 01:00:00,647][ERROR][marvel.agent.exporter.local] local exporter [default_local] - ...
[2017-05-18 00:00:06,339][DEBUG][action.admin.indices.create] [data-2] [data-may-2017,data-apr-..
When i am sending logs from filebeat to logstash through multiline codec in the filebeat configuration it is not working .
My filebeat config:
- input_type: log
# Paths that should be crawled and fetched. Glob based paths.
paths:
- F:\elasticsearch-2.4.0\elasticsearch-2.4.0\logs\elasticsearch_index_search_slowlog.log
#- c:\programdata\elasticsearch\logs\*
multiline.pattern: ^\[%{TIMESTAMP_ISO8601:TIMESTAMP}\]
multiline.negate: true
multiline.match: "after"
output.logstash:
# The Logstash hosts
hosts: ["localhost:5044"]
logging:
to_files: true
files:
path: C:\Program Files\filebeat\logs
level: debug
selectors: ["*"]
Output: My both logs are merged together and coming
Logstash: When i used the same multiline in logstash it is working fine . I can see my logs are separated.
Whether the problem is in my filebeat configuration?
Thanks