remove _timestamp correctly

This commit is contained in:
pemontto
2019-04-15 20:12:28 +10:00
parent 97d2a2606c
commit dd66414fe7
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ filter {
date { date {
match => [ "_timestamp", "UNIX" ] match => [ "_timestamp", "UNIX" ]
target => "@timestamp" target => "@timestamp"
remove_field => ["timestamp"] remove_field => ["_timestamp"]
} }
#If using filebeats as your source, you will need to replace the "path" field to "source" #If using filebeats as your source, you will need to replace the "path" field to "source"

View File

@ -22,7 +22,7 @@ filter {
date { date {
match => [ "_timestamp", "UNIX" ] match => [ "_timestamp", "UNIX" ]
target => "@timestamp" target => "@timestamp"
remove_field => ["timestamp"] remove_field => ["_timestamp"]
} }
grok { grok {

View File

@ -23,7 +23,7 @@ filter {
date { date {
match => [ "_timestamp", "UNIX" ] match => [ "_timestamp", "UNIX" ]
target => "@timestamp" target => "@timestamp"
remove_field => ["timestamp"] remove_field => ["_timestamp"]
} }
grok { grok {