Hi,
I have started with Elastic Stack recently. My use case is to monitor multiple raspberry pis with Beats module and visualize the data in Kibana Dashboards.
I tried to set up Metricbeat and filebeat on Raspi 3, it was built and was running successfully.
Now when I enabled the Postgres module, the data is still sent to elasticsearch but with the error message.
Separate fields which are mentioned here
Here is the single packet
{
"_index": "filebeat-6.2.4-2018.06.25",
"_type": "doc",
"_id": "2NIFN2QBZiKLCXbASBWN",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2018-06-25T12:57:28.853Z",
"offset": 5585,
"beat": {
"hostname": "RedisT1",
"name": "RedisT1",
"version": "6.2.4"
},
"prospector": {
"type": "log"
},
"source": "/var/log/postgresql/postgresql-9.4-main.log.1",
"message": "1970-01-01 09:00:08 +09 [620-1] LOG: autovacuum launcher started",
"fileset": {
"module": "postgresql",
"name": "log"
},
"error": {
"message": "Provided Grok expressions do not match field value: [1970-01-01 09:00:08 +09 [620-1] LOG: autovacuum launcher started]"
}
},
"fields": {
"@timestamp": [
"2018-06-25T12:57:28.853Z"
]
},
"highlight": {
"fileset.module": [
"@kibana-highlighted-field@postgresql@/kibana-highlighted-field@"
]
},
"sort": [
1529931448853
]
}
I don't know the reason why filebeat is not able to parse the logs. I searched over internet but did not find anything that could be of use.
Thanks.