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

Support for path globbing #21128

Closed
ghost opened this issue Sep 17, 2020 · 8 comments
Closed

Support for path globbing #21128

ghost opened this issue Sep 17, 2020 · 8 comments
Labels
Stalled Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@ghost
Copy link

ghost commented Sep 17, 2020

Describe the enhancement:
Journalbeat has no way to use globbing for paths in journalbeat.inputs. There are some cases where multiple journals in different subdirectories exist.

Describe a specific use case for the enhancement or feature:
OpenStack-Ansible uses containers and links the journals to /openstack/log/. This leads to several different subdirectories with different names:

drwxr-xr-x  5 root   root  x-aodh_container-1a/
drwxr-xr-x  4 root   root  x-ceilometer_central_container-a7/
drwxr-xr-x  7 root   root  x-ceph-mon_container-c7/
drwxr-xr-x  4 root   root  x-cinder_api_container-2c/
(…)

Journalbeat should be able to access them like this:

- paths:
  - "/var/log/journal"
  - "/openstack/log/*/journal/*/system.journal"

But this is not possible right now:

ERROR	instance/beat.go:951	Exiting: error creating reader for journal: reader.go:107: failed to read meta data for /openstack/log/*/journal/*/system.journal (path=/openstack/log/*/journal/*/system.journal)
	stat /openstack/log/*/journal/*/system.journal: no such file or directory
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 17, 2020
@andresrc andresrc added the Team:Services (Deprecated) Label for the former Integrations-Services team label Sep 17, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 17, 2020
@andresrc andresrc mentioned this issue Sep 21, 2020
23 tasks
@jocelynthode
Copy link

@kbojens Hey we are facing the same issue. Did you find a workaround in the meantime?

@jlind23
Copy link
Collaborator

jlind23 commented Jan 6, 2022

Hello @kbojens

As of 7.16 journald is provided as an input to Filebeat: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-journald.html. Consequently journalbeat has been deprecated from that release onwards.

cc @kvch

@kvch kvch added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Jan 10, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@kvch
Copy link
Contributor

kvch commented Jan 10, 2022

Unfortunately, it is not supported in journald input either.

@jlind23 jlind23 removed the v8.2.0 label Mar 21, 2022
@jlind23 jlind23 removed the Team:Services (Deprecated) Label for the former Integrations-Services team label Mar 31, 2022
@botelastic
Copy link

botelastic bot commented Mar 31, 2023

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Mar 31, 2023
@RomeoOscarPapaAlpha
Copy link

We are facing the same issue. Are there any updates or workarounds? Thx

@botelastic botelastic bot removed the Stalled label Jun 7, 2023
@botelastic
Copy link

botelastic bot commented Jun 6, 2024

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jun 6, 2024
@botelastic botelastic bot closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stalled Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

6 participants