"_index": "access_log",
"_type": "access_logs",
"_id": "0udbmGEBevLW4jI4We7N",
"_score": 1,
"_source": {
"@timestamp": "2018-02-15T07:26:18.252Z",
"path": "V:/cc/7.7/mcs_7_indonesia_dev/mpower/out/log/MessagingBroker_access.log",
i want to change above id "_id": "0udbmGEBevLW4jI4We7N", to 1 and auto increment it.
input{
file{
path => "V:/cc/7.7/mcs_7_indonesia_dev/mpower/out/log/MessagingBroker_access.log"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
if [message] =~ /^=/ {
drop { }
}
}
output {
elasticsearch {
action => "index"
hosts => ["localhost:9200"]
index => "access_log"
document_type => "access_logs"
}
stdout { }
}
Above is the config file and the above _id is auto generating.