Hey @Badger
Here it is, am pasting entire config.
input {
beats {
port => 5044
ssl => false
}
filter {
if [type] == "syslog" {
grok {
match => { "message" => "%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration}" }
}
date {
match => [ "timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
}
}
}
output {
elasticsearch {
hosts => localhost
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
}
stdout {
codec => rubydebug
}
}
and now my logs are coming as
{
"_index": "filebeat-2019.02.12",
"_type": "doc",
"_id": "skuhlhdunA-Ssjuo",
"_version": 1,
"_score": null,
"_source": {
"beat": {
"name": "ABC",
"hostname": "ABC",
"version": "6.X.X"
},
"host": {
"name": "ABC",
"id": "acjkgdljhvjhfgfjhlebkjhdg",
"architecture": "",
"containerized": true,
"os": {
"platform": "aaa",
"codename": "Core",
"version": "7 ",
"family": "zaaaa"
}
},
"message": "The log with the affected area",
"offset": 6743534,
"input": {
"type": "log"
},
"prospector": {
"type": "log"
},
"meta": {
"cloud": {
"machine_type": "qqqqqq",
"region": "",
"availability_zone": "sdfsfd",
"instance_id": "fsdfsdfsfsfdf",
"provider": "sfds"
}
},
"tags": [
"beats_input_codec_plain_applied"
],
"@timestamp": "2019-02-12T17:20:46.163Z",
"source": "error.log",
"@version": "1"
},
"fields": {
"@timestamp": [
"2019-02-12T17:20:46.163Z"
]s
},
"sort": [
1549992046163
]
}
The requirement is, I don't want any of those except for few like hostname , message, source,