-
Notifications
You must be signed in to change notification settings - Fork 44
Setting "target" and "source" to "message" silently drops events #34
Copy link
Copy link
Open
Description
- Version: 5.5.0
- Operating System: CentOS 7.3
- Config File (if you have sensitive info, please remove it):
json {
source => "message"
target => "message"
skip_on_invalid_json => true
}
- Sample Data:
This is a Mesos task log:
Registered docker executor on 10.x.x.x
Starting task sometask
{"foo": "bar", "baz": 1}
{"foo": "bar", "baz": 1}
{"foo": "bar", "baz": 1}
{"foo": "bar", "baz": 1}- Steps to Reproduce:
Send sample data with Filebeat to Logstash with JSON filter documented above.
The input messages should be of the form:
...etc...
{"message": "Starting task sometask", ...}
{"message": "{\"foo\": \"bar\", \"baz\": 1}", ...}
...etc...
The output message should look like:
...etc...
{"message": "Starting task sometask", ...}
{"message": {"foo": "bar", "baz": 1}, ...}
...etc...
Instead, the invalidly parsed events (e.g. Starting task sometask) pass through, but the JSON events are silently dropped.
If I change target to something else (e.g. target => "json"), it works as expected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels