my conf
input {
beats {
port => "5044"
}
}
filter {
dissect {
mapping => {
"message" => "%{uat_log_date} %{uat_log_time} %{uat_log_ip} %{uat_log_traid} %{uat_log_action} %{uat_log_flag} %{uat_log_ts1} %{uat_log_ts2} %{uat_log_other}"
}
add_field => { "full_date" => "%{uat_log_date} %{uat_log_time}" }
}
mutate {
# full_date of value is 2019-01-21 09:47:03.641
gsub => ["full_date", "/", "-"]
}
date {
match => [ "full_date", "YYYYMMddHHmmss" ]
}
}
output {
elasticsearch {
hosts => [ "localhost:9200" ]
index => "uatlog1-%{+YYYY.MM.dd}"
}
}
I want to convert the full_date field type to date type using date plugin.
then,The type I query from elasticsearch is text
"full_date" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
What do I need to do to make date plugin to working?