Page MenuHomePhabricator

Increase in Logstash warning logs
Closed, ResolvedPublic

Description

Started on 2024-11-27

{
  "level":"WARN",
  "loggerName":"logstash.filters.mutate",
  "timeMillis":1734051000766,
  "thread":"[main]>worker2",
  "logEvent":{
    "message":"Exception caught while applying mutate filter","exception":"Could not set field 'type' on object 'function-evaluator' to value 'input-file-kubernetes'.This is probably due to trying to set a field like [foo][bar] = someValuewhen [foo] is not either a map or a string"
  }
}

Event Timeline

I suspect this is due to function-evaluator using the top level-key service and the logstash pipeline not able to handle it as part of ecs handling.

Change #1109781 had a related patch set uploaded (by Cwhite; author: Cwhite):

[operations/puppet@production] logstash: ensure service is a hash at ecs pre-filter step

https://gerrit.wikimedia.org/r/1109781

Change #1109781 merged by Cwhite:

[operations/puppet@production] logstash: ensure service is a hash at ecs pre-filter step

https://gerrit.wikimedia.org/r/1109781

colewhite claimed this task.

Warning logs are now greatly reduced.