Hi Badger thanks for helping.
I used this below code to segregate blank field having shipment date or not. but it works for to filter field have no shipment date.
translate {
field => "Shipment Date"
destination => "Order Status"
dictionary => {
"" => "OrderisPending"
}
fallback => "AlreadyInvoiced"
refresh_interval => 60
refresh_behaviour => replace
}
With No Shipment Date
{
"Cust #" => 996879,
"OrderYesterday" => 0,
"Total Order Value" => 0.0,
"message" => "\"O 417182\",996879,\"O\",\" 417182\",\" 417182\",\"O\",\"True\",09-Nov-20,0,0,0,\" 462176\",,09-Nov-20,,0,0,0,\" HP\",\"Harold Peet\",\" GS\"\r",
"Order Complete?" => "True",
"Total Dollar Value" => 0.0,
"Loc" => " TS",
"Salesperson" => " HP",
"Order Date" => 2020-11-09T05:00:00.000Z,
"host" => "PC",
"Doc #" => 417182,
"Doc Type" => "O",
"TotalShipped" => 0,
"Inv #" => " 462176",
"Order Type" => "O",
"path" => "D:/ELK/logstash-7.9.3/config/sortbyweek.csv",
"Order #" => 417182,
"Order Key" => "O 417182",
"TotalOrderReceivedToday" => 0,
"@timestamp" => 2020-12-03T16:11:13.270Z,
"Order Status" => "OrderisPending",
"Salesperson name" => "salesperson1",
"@version" => "1",
"Expected Ship Date" => 2020-11-09T05:00:00.000Z,
"Inv Date" => nil,
"Shipment Date" => nil,
"ShippedYesterday" => 0
}
Have Shipment Date
{
"Cust #" => 825838,
"OrderYesterday" => 0,
"Total Order Value" => 59.98,
"message" => "\"I 462172\",825848,\"I\",\" 462172\",\" 417185\",\"O\",\"True\",09-Nov-20,59.98,67.78,0,\" 462172\",09-Nov-20,09-Nov-20,09-Nov-20,0,0,0,\" GD\",\"Gary Dykstra\",\" GS\"\r",
"Order Complete?" => "True",
"Total Dollar Value" => 67.78,
"Loc" => " TS",
"Salesperson" => " GD",
"Order Date" => 2020-11-09T05:00:00.000Z,
"host" => "PC",
"Doc #" => 462172,
"Doc Type" => "I",
"TotalShipped" => 0,
"Inv #" => " 462172",
"Order Type" => "O",
"path" => "D:/ELK/logstash-7.9.3/config/sortbyweek.csv",
"Order #" => 417185,
"Order Key" => "I 462172",
"TotalOrderReceivedToday" => 0,
"@timestamp" => 2020-12-03T16:11:13.269Z,
"Order Status" => "AlreadyInvoiced",
"Salesperson name" => "salesperson2",
"@version" => "1",
"Expected Ship Date" => 2020-11-09T05:00:00.000Z,
"Inv Date" => 2020-11-09T05:00:00.000Z,
"Shipment Date" => 2020-11-09T05:00:00.000Z,
"ShippedYesterday" => 0
}