Here is the full pipeline:
{
"@version" => "1",
"date/time" => "Feb 2, 2020 3:12:55 AM PST",
"giftwrap credits tax" => 0.0,
"order postal" => nil,
"quantity" => nil,
"type" => "Service Fee",
"fba fees" => 0.0,
"description" => "Cost of Advertising",
"tags" => [
[0] "_mutate_error"
],
"path" => "/Users/yanivnuriel/logstash/data/transactions/all-14.txt",
"shipping credits" => 0.0,
"total" => -122.32,
"message" => "\"Feb 2, 2020 3:12:55 AM PST\",12578696491,Service Fee,,,Cost of Advertising,,,,,,,,0,0,0,0,0,0,0,0,0,0,0,-122.32,0,-122.32\r",
"order city" => nil,
"tax collection model" => nil,
"product sales" => 0.0,
"shipping credits tax" => 0.0,
"other transaction fees" => -122.32,
"gift wrap credits" => 0.0,
"order state" => nil,
"promotional rebates tax" => 0.0,
"selling fees" => 0.0,
"promotional rebates" => 0.0,
"product sales tax" => 0.0,
"fulfillment" => nil,
"marketplace withheld tax" => 0.0,
"settlement id" => "12578696491",
"other" => 0.0,
"order id" => nil,
"marketplace" => [
[0] "ebay"
],
"host" => "Yanivs-MBP",
"sku" => nil,
"@timestamp" => 2020-02-02T11:12:55.000Z
}
Here is the only mutate part in config:
if ! [marketplace] {
mutate {add_field => {"marketplace" => "ebay"} }
}