Hi
I am new to ELK. Need some help with some specific filters.
I am fetching some data from a table using a logstash.conf file.
I wanted to do this:
If status of a user is a or b or c, add a field marking them as X
If status is d or e, add a field marking this type of data as Y
I did the following and tried adding a field called "progress", but the add_field didn't add the progress field
filter {
if [Status] == "In Progress"{
mutate {
add_field => [ "progress", "doing" ]
}
}
elseif [Status]=="Not Started" or [Status]=="Hold" {
mutate {
add_field => [ "progress", "stopped" ]
}
}
elseif [Status] == "Retired" or [Status] == "Production" or [Status] == "Decom" {
mutate {
add_field => [ "progress", "complete" ]
}
}
}
I want to create a data table in kibana based on this progress field, but it is not showing up.
Am I doing something wrong?
Regards
Arshdeep