Skip to content

json configuration not recognized anymore #330

@vaol

Description

@vaol

Hello,

I updated from 4.11 to 4.14 with the following input definition:

filebeat::input { 'syslog':
  paths          => ['/var/log/syslog.json'],
  ignore_older   => '10m',
  close_older    => '10m',
  scan_frequency => '5s',
  fields         => { logtype => 'syslog', },
  json           => {
    keys_under_root => true,
    add_error_key   => true,
    overwrite_keys  => true,
  },
}

and the corresponding line example from /var/log/syslog.json
{"@timestamp":"2023-07-17T21:02:55.407481+00:00","@version":"1","message":"Applied catalog in 24.84 seconds","host":"code-acceptance-db-1","severity":"notice","facility":"daemon","programname":"puppet-agent","procid":"9130"}

My issue being the programname no longer recognized as input field after the update.

After checking /etc/filebeat/conf.d/syslog.yml and the corresponding documentation I changed the current json into parsers.0.ndjson and I got the field back.

Is there another way to have the same behaviour than previously with the 4.14 version ?

Thank you !

Best regards,
OV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions