Skip to content

Conversation

felixbarny
Copy link
Member

Fixes #67

@ghost
Copy link

ghost commented Mar 30, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-04-04T04:35:00.842+0000

  • Duration: 3 min 8 sec

Copy link

@cyrille-leclerc cyrille-leclerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to document both filebeat <7.16 with the log input and filebeat >= 7.16 with the filestream input because bumping filebeat may not be easy.

- type: log
- type: filestream
paths: /path/to/logs.json
json.keys_under_root: true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filestream doesn't have the same syntax for the json tricks.

it looks like

- type: filestream
  paths: /path/to/logs.json
  parsers:
      - ndjson:
          keys_under_root: true
          overwrite_keys: true

See https://github.com/cyrille-leclerc/my-shopping-cart/blob/2cde6dda3974143271fe9e2d929ffa59849fa94b/elastic-filebeat/filebeat.yml

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've added two sections now. I've also added instructions for adding metadata processors. LMKWYT.

Copy link

@cyrille-leclerc cyrille-leclerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAny thanks @felixbarny

@felixbarny felixbarny merged commit 6d11490 into main Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Documentation] Setup guide recommends the deprecated Filebeat log input instead of the new filestream input
2 participants