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

Use filestream input instead of deprecated log #69

Merged
merged 3 commits into from
Apr 4, 2022
Merged

Conversation

felixbarny
Copy link
Member

Fixes #67

@apmmachine
Copy link

apmmachine 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.

@@ -7,7 +7,7 @@
.filebeat.yaml
----
filebeat.inputs:
- 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
3 participants