Hi Guys
I'm new to Elastic and have been searching lots to try and find an answer.
I have a multiline JSON that I'm trying to create a single event for.
The Json looks like this:
{
"SourceInfo": "C:\\Modules\\User\\xTestCompositeModule\\DSCResources\\cTestBaseline\\cTestBaseline.schema.psm1::33::1::File"
"ModuleName": "PSDesiredStateConfiguration"
"DurationInSeconds": "0"
"InstanceName": "TestFolder::[cTestBaseline]Baseline"
"StartDate": "2018-03-28T10:51:54.4820000+13:00"
"ResourceName": "File"
"ModuleVersion": "1.1"
"RebootRequested": "False"
"ResourceId": "[File]TestFolder::[cTestBaseline]Baseline"
"ConfigurationName": "ServerConfigV2"
"InDesiredState": "True"
}
My filebeat config is:
filebeat.prospectors:
- paths:
- C:\Log*.*
input_type: log
multiline.pattern: '^{'
multiline.negate: true
multiline.match: after
- C:\Log*.*
processors:
- decode_json_fields:
fields: ['message']
target: json
output.elasticsearch:
hosts: ["http://172.17.16.103:9200"]
Only issue I'm getting is that all the fields are contained inside the message field on Elasticsearch.
thanks in advance for the help.