And the errors in filebeat, do they appear always or only sometimes or after a while? Is any of these messages shipped to Elasticsearch?
I am trying to push only one sample log to ES and it is getting failed and I believe this is the same response for others as well because I tried it earlier.
The json.messake_key option is case sensitive, so in this case it'd need to be Log, with uppercase L. In any case I think this is something you don't need because the log message seems already parsed, so you could remove this line from the configuration.
I updated the configurations as you mentioned and no luck with that as well.
Log which I used to push to ES using filebeat
{"Level":"DEBUG","Date":"2018-06-05 17:52:33.419","Thread":"[https-jsse-nio-8443-exec-4]","Context":"VaultAuthController","Log":{"user":"user1","action":"User Login","message":"Authentication Successful","httpstatus":"200","apiurl":"https://dev-app.dnsname.com/app/auth/tapp/login/vault/auth/tvault/login"}}
Data which I can see in the ElasticSearch Index is
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":7,"max_score":1,"hits":[{"_index":"aryan","_type":"doc","_id":"AWPRd8K41KLsrRyh9F3F","_score":1,"_source":{"@timestamp":"2018-06-05T19:41:15.705Z","source":"/root/sample.log","offset":20,"error":{"message":"Error decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}","type":"json"},"Log":""" "Level":"DEBUG",""","prospector":{"type":"log"},"beat":{"name":"8c435b7cf226","hostname":"8c435b7cf226","version":"6.0.1"}}},{"_index":"aryan","_type":"doc","_id":"AWPRd8K41KLsrRyh9F3G","_score":1,"_source":{"@timestamp":"2018-06-05T19:41:15.705Z","source":"/root/sample.log","offset":56,"error":{"message":"Error decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}","type":"json"},"Log":""" "Date": "2018-06-0517:52:33.419",""","prospector":{"type":"log"},"beat":{"name":"8c435b7cf226","hostname":"8c435b7cf226","version":"6.0.1"}}},{"_index":"aryan","_type":"doc","_id":"AWPRd8K41KLsrRyh9F3I","_score":1,"_source":{"@timestamp":"2018-06-05T19:41:15.705Z","Log":""" "Context": "appAuthController",""","prospector":{"type":"log"},"beat":{"name":"8c435b7cf226","hostname":"8c435b7cf226","version":"6.0.1"},"source":"/root/sample.log","offset":135,"error":{"type":"json","message":"Error decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}"}}},{"_index":"aryan","_type":"doc","_id":"AWPRd8K41KLsrRyh9F3J","_score":1,"_source":{"@timestamp":"2018-06-05T19:41:15.705Z","beat":{"version":"6.0.1","name":"8c435b7cf226","hostname":"8c435b7cf226"},"error":{"message":"Error decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}","type":"json"},"source":"/root/sample.log","offset":318,"Log":""" "Log": {"user":"user1","action":"UserLogin","message":"AuthenticationSuccessful","httpstatus":"200","apiurl":"https://dev-app.dnsname.com/app/auth/tapp/login"}""","prospector":{"type":"log"}}},{"_index":"aryan","_type":"doc","_id":"AWPRd8K41KLsrRyh9F3E","_score":1,"_source":{"@timestamp":"2018-06-05T19:41:15.705Z","error":{"message":"Error decoding JSON: unexpected EOF","type":"json"},"prospector":{"type":"log"},"beat":{"name":"8c435b7cf226","hostname":"8c435b7cf226","version":"6.0.1"},"Log":"{","source":"/root/sample.log","offset":2}},{"_index":"aryan","_type":"doc","_id":"AWPRd8K51KLsrRyh9F3K","_score":1,"_source":{"@timestamp":"2018-06-05T19:41:15.705Z","offset":320,"Log":"}","error":{"type":"json","message":"Error decoding JSON: invalid character '}' looking for beginning of value"},"source":"/root/sample.log","prospector":{"type":"log"},"beat":{"name":"8c435b7cf226","hostname":"8c435b7cf226","version":"6.0.1"}}},{"_index":"aryan","_type":"doc","_id":"AWPRd8K41KLsrRyh9F3H","_score":1,"_source":{"@timestamp":"2018-06-05T19:41:15.705Z","source":"/root/sample.log","offset":100,"error":{"message":"Error decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}","type":"json"},"Log":""" "Thread": "[https-jsse-nio-8443-exec-4]",""","prospector":{"type":"log"},"beat":{"version":"6.0.1","name":"8c435b7cf226","hostname":"8c435b7cf226"}}}]}}
Could you please let me know if we need to modify any other configurations?
Please note that there are some other filebeat instances also running from the same server, which are pushing different logs to ElasticSearch with out any issue.