Gabriel
Thanks this was helpful. This is what I found.
First, I checked the filebeat logs on the machine where the nginx docker container is running and found no parsing errors(at least not since I got the nginx logs to show up in discover).
Next I followed the simulate instructions. I grabbed a message from the nginx docker container's log and used it as the "docs" argument on the kibana dev tools page:
So it looks like I do have a parsing error but it does not show in the logs.
Questions:
What I put in docs._source above was cut and paste directly from the nginx docker container log file(/var/lib/docker/containers//-json.log). I'd like to verify that is exactly what is getting passed to elasticsearch. Is there a debug setting in filebeat to see what is getting sent over the wire?
Must the nginx file format match what's in the patterns field of filebeat-7.0.1-nginx-access-default(a dash after remote_ip_list, a pipe after user.name)?
My problem is that the nginx filebeat dashboards still show no data.
Gabriel had asked if there were parsing errors in the filebeat log. I turned on debugging(filebeat -d "*") and I see no errors. But is that where I should be looking? Is filebeat-7.0.1-nginx-access-default processed by filebeat or elasticsearch?
If the answer is elasticsearch(and even if its not) how do I debug elasticsearch. I've found instructions on how to set the log level:
PUT /_cluster/settings
{
"transient": {
"logger.org.elasticsearch.transport": "trace"
}
}
But how do I know which Java package to set the debug level on?
After updating your nginx file format did you check in elastic if the data are correctly updated like the result you had in simulate?
If you have all your data correct in elastic but nothing in your dashboard check the visualize are linked to the correct index. Also check that your index have the pipeline attached.
For the logs, now that your data are correctly formatted you must have data in elastic so you can check here to confirm that all is ok.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.