Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filebeat's Kibana module doesn't support new 8.0 logging format #31216

Closed
adriansr opened this issue Apr 7, 2022 · 11 comments · Fixed by #31286
Closed

Filebeat's Kibana module doesn't support new 8.0 logging format #31216

adriansr opened this issue Apr 7, 2022 · 11 comments · Fixed by #31286
Assignees
Labels
bug Filebeat Filebeat help wanted Indicates that a maintainer wants help on an issue or pull request Team:Integrations Label for the Integrations team

Comments

@adriansr
Copy link
Contributor

adriansr commented Apr 7, 2022

For confirmed bugs, please report:

  • Version: Kibana 8.0+
  • Operating System: n/a
  • Discuss Forum URL: n/a
  • Steps to Reproduce:

Starting with v8.0, Kibana introduces a new logging system that changes the JSON fields that are generated.

The kibana module doesn't support the new fields: expects a pid field, while the new format outputs ECS-compatible process.pid. Other fields need review.

This results in an ingestion:

"error.message": "field [kibana.log.meta.pid] doesn't exist"

@adriansr adriansr added bug Filebeat Filebeat help wanted Indicates that a maintainer wants help on an issue or pull request Team:Integrations Label for the Integrations team labels Apr 7, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@adriansr adriansr changed the title Filebeat's Kibana module doesn' support new 8.0 logging format Filebeat's Kibana module doesn't support new 8.0 logging format Apr 7, 2022
@insukcho
Copy link
Contributor

Do we have any workarounds before fixing the bug?

@klacabane
Copy link
Contributor

@insukcho Ignoring failures of the kibana.log.meta.pid processor would allow the documents to be processed further down the pipeline. I'm still ramping up on the kibana logs to filebeat ingestion so I can't tell yet if any other processor will fail with the new format

Screenshot 2022-04-13 at 12 07 24

@klacabane
Copy link
Contributor

Raised a potential bug in Kibana log entries #31576

@MSSP-BLKing
Copy link

After implementing the workaround we were presented with field [kibana.log.meta.tags] doesn't exist. The same workaround worked, but I wanted to make sure you knew this field was in error too. Cheers!

@klacabane klacabane self-assigned this Apr 19, 2022
@klacabane
Copy link
Contributor

Fix was merged in main and backported to 8.2

@MSSP-BLKing
Copy link

I'm still seeing this in 8.2, but this time it appears to be only occurring on Machine Learning entries.

@klacabane should this be a new issue or a recurrence of this same issue?

Screenshot from 2022-05-16 12-12-26

@muratkucuktepe
Copy link

I got also the same error. Kibana uses 8.4.0 ecs and filebeat 1.12.0
error.message field [kibana.log.meta.pid] doesn't exist

@klacabane
Copy link
Contributor

Hi @muratkucuktepe, is this happening in cloud or onprem environment ? Which filebeat/kibana version are you using ? The kibana.log pipeline was reworked in 8.8 (#35268), are you able to test this version to see if it fixes the issue ?

@muratkucuktepe
Copy link

muratkucuktepe commented Sep 21, 2023

Hi @klacabane. We have production & monitoring cluster.
Production Cluster -> Filebeat 7.16.3, Kibana 8.5.3, ELS 8.5.3
Monitoring Cluster -> ELS 7.16.3
Filebeat uses ECS 1.12 Kibana has 8.4 (at least in logs I have seen).
Kibana has at the moment registry issue. As far as I understood, it works alone and not attached to cluster. ( I am currently on it) Filebeat reads the Kibana logs in json format.

kibana.yml

  root:
    level: warn
    appenders: [rolling-file]
    appenders: [ rolling-file-default,rolling-file-json ]
  appenders:
    rolling-file:
    rolling-file-default:
      type: rolling-file
      fileName: /../kibana/logs/kibana.log
      policy:
        type: size-limit
        size: 100mb
      strategy:
        type: numeric
        pattern: '-%i'
        max: 10
      layout:
        type: pattern
    rolling-file-json:
      type: rolling-file
      fileName: /../kibana/logs/kibana.json
      policy:
        type: size-limit
        size: 100mb
      strategy:
        type: numeric
        pattern: '-%i'
        max: 10
      layout:
        type: json```

filebeat.yml
```- module: kibana
    # Server logs
    log:
      enabled: true
      var.paths:
        - /../kibana/logs/kibana.json```
      
I do not know if this is relevant. Kibana error: 
`[2023-01-13T16:13:59.900+01:00][ERROR][plugins.fleet] Failed to fetch latest version of synthetics from registry: Error connecting to package registry: request to https://epr.elastic.co/search?package=synthetics&experimental=true&kibana.version=8.5.3 failed, reason: connect ENETUNREACH XX.XXX.XXX.XXX:XXX - Local (0.0.0.0:0)`

@klacabane
Copy link
Contributor

@muratkucuktepe The filebeat version running in production does not fully support 8.0+ log format and should be upgraded. I've reproduced the issue and using a filebeat > v8.2 fixes it. You can use 8.5.3 to align with the production stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Filebeat Filebeat help wanted Indicates that a maintainer wants help on an issue or pull request Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants