As i am trying to write a script that as to populate the "Category" based on "Knowledge Title" contains some text called "AGSS", but here the condition is that i need to check the "Category" is null then only i have to proceed for other condition.
Please find the code snippet:
if [Category] { /* need to check the "Category is null */
if "AGSS" in [Knowledge Title] {
mutate {
update => { "Category" => "SOFTWARE_MOD" }
}
}
}
In the above code is not able to check for null for "Category" field
I tried even the following one for null check:
if [Category] == nil
if [Category] == null
if [Category] != nil
if [Category] == "null"
if [Category] == "nil"
but none of them are working,
Can you please help me out how to check for a null
for a particular field.
Thanks in advance.