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

[FEATURE REQUEST] Enable multiline support for logs statements in Filebeat #765

Closed
tim-gates opened this issue Dec 3, 2019 · 6 comments · Fixed by #1611
Closed

[FEATURE REQUEST] Enable multiline support for logs statements in Filebeat #765

tim-gates opened this issue Dec 3, 2019 · 6 comments · Fixed by #1611

Comments

@tim-gates
Copy link

tim-gates commented Dec 3, 2019

Is your feature request related to a problem? Please describe.
For DE services we would like to be able to have multiline ingestion of log statements into Elasticsearch 'out of the box'.
Currently, the Docker Filebeat configuration is not set up to specify a multiline properties. We've worked around this by
manually setting the following configuration in the filebeat.yml for each K8s node.

Describe the solution you'd like
For each K8s node we did the following.

SSH into the node (See the Environments page for instructions and IP addresses)

Edit the Filebeat configuration file to add the appropriate filebeat configuration:
sudo vim /etc/filebeat/filebeat.yml
Add the following bold lines in the location shown below. Be careful of indentation (this is a YAML file)

- type: docker
   enabled: true
   containers.ids: "*"
   multiline.pattern: '([12]\d{3}[- \/.](0[1-9]|1[0-2])[- \/.](0[1-9]|[12]\d|3[01]))|(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d\d'
   multiline.negate: true
   multiline.match: after
   processors:

Restart filebeat:
sudo service filebeat restart

Describe alternatives you've considered
Nothing to add.

Additional context
Nothing to add.

@erzetpe
Copy link
Contributor

erzetpe commented Jul 1, 2020

Removed link to internal company documentation.

@erzetpe
Copy link
Contributor

erzetpe commented Jul 1, 2020

@tim-gates: What do you think about making such options configurable? Then you would specify your own options in settings according to filebeat documentation? https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html

We can also setup such options for other components.

@plirglo plirglo assigned erzetpe and unassigned erzetpe Jul 24, 2020
@gj25
Copy link

gj25 commented Jul 27, 2020

@erzetpe I think that is OK, as long as it can be done during the Epiphany install/config.

@erzetpe
Copy link
Contributor

erzetpe commented Jul 27, 2020

Yes, this is our intent. Thank you for the information.

@mkyc mkyc modified the milestones: Improvements, S20200827, S20200910 Aug 11, 2020
@rafzei rafzei self-assigned this Aug 31, 2020
@rafzei rafzei changed the title Enable multiline support for logs statements in Filebeat [FEATURE REQUEST] Enable multiline support for logs statements in Filebeat Sep 1, 2020
@rafzei rafzei linked a pull request Sep 2, 2020 that will close this issue
@rafzei rafzei reopened this Sep 4, 2020
@przemyslavic przemyslavic self-assigned this Sep 9, 2020
@mkyc mkyc modified the milestones: S20200910, S20200924 Sep 10, 2020
@przemyslavic
Copy link
Collaborator

@mkyc mkyc modified the milestones: S20200924, S20201008 Sep 24, 2020
@mkyc mkyc modified the milestones: S20201008, S20201022 Sep 24, 2020
@to-bar
Copy link
Contributor

to-bar commented Sep 30, 2020

Test OK after fixing #1669.

@mkyc mkyc closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants