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

filelog receiver include doesn't support multiple directory levels #4628

Closed
overmeulen opened this issue Aug 16, 2021 · 3 comments
Closed

filelog receiver include doesn't support multiple directory levels #4628

overmeulen opened this issue Aug 16, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@overmeulen
Copy link

overmeulen commented Aug 16, 2021

Describe the bug
Using ** in the filelog receiver include pattern only picks up 1 directory level

Steps to reproduce
Collector config:

receivers:
  filelog:
    include: [ /data/**/*.log ]

What did you expect to see?
/data/A/B/test.log being watched by the filelog receiver

What did you see instead?
/data/A/test.log being watched but not /data/A/B/test.log (check the collector logs)

What version did you use?
opentelemetry-collector-contrib v0.31.0

@overmeulen overmeulen added the bug Something isn't working label Aug 16, 2021
@overmeulen overmeulen changed the title filelogger receiver include doesn't support multiple directory levels filelog receiver include doesn't support multiple directory levels Aug 16, 2021
@gillg
Copy link
Contributor

gillg commented Aug 29, 2021

I tried it some days ago and it was working for me.
Are you sure you didn't missed to mount your host log folder in you collector container (if you use docker).
Have you a log in console saying it can't find a file with the pattern ?

@overmeulen
Copy link
Author

I'm not using docker in this case, and there is nothing in the console...

@gillg
Copy link
Contributor

gillg commented Sep 2, 2021

If there is nothing on the console it's strange. You should have at least something saying there is no files in the given path. Have you add it on the pipelines section ? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants