I'm very very new to Elasticsearch/ELK, and I'm currently learning it from scratch for a project. I'm running it on an Ubuntu VM and my first task is to process json log files from my desktop through Filebeat into Elasticsearch. I have everything installed and I've experimented with downloading the Shakespeare files as a demo, but I'm stuck on how I can link my own files to Elasticsearch?
Right now I'm trying to process a log file called 'test.log' and this is what I have so far:
//curl -XPOST "http://localhost:9200/test/test" -H "Content-Type: application/json" -d @test.log
The error I get reads:
Warning: Couldn't read data from file "test.log", this makes and empty POST.
{"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}
Would appreciate some help and guidance. Thank you.