Hi ,
I have log file containing logs in format
127.0.0.1 - - [16/Dec/2016:17:38:39 +0530] "GET /feed/user/785400761?q.l.m=en&debug=enabled HTTP/1.1" 200 - "-" "Jersey/2.25 (HttpUrlConnection 1.8.0_111)" 1041
But In elastic search this line is not getting parsed and saved as single line with key "message ".
How can I pre process this log line with fields and values in file beat .
{
"_index": "filebeat-2016.12.18",
"_type": "apache",
"_id": "AVkOPcVbK0-PQC85yaJh",
"_score": null,
"_source": {
"@timestamp": "2016-12-17T19:24:06.361Z",
"beat": {
"hostname": "VER-BLR-LT1599",
"name": "VER-BLR-LT1599",
"version": "5.1.1"
},
"input_type": "log",
"message": "212.87.37.154 - - [12/Sep/2016:16:21:15 +0000] \"GET /favicon.ico HTTP/1.1\" 200 3638 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36\"",
"offset": 212,
"source": "/home/sohanvir/Desktop/code-env/web/prod/test/ex.log",
"type": "apache"
},
"fields": {
"@timestamp": [
1482002646361
]
},
"sort": [
1482002646361
]
}
Thanks In Advance