remove _timestamp correctly
This commit is contained in:
@ -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"
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Reference in New Issue
Block a user