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

-d "*" does not include the "publish" selector #339

Closed
darxriggs opened this issue Oct 27, 2015 · 4 comments
Closed

-d "*" does not include the "publish" selector #339

darxriggs opened this issue Oct 27, 2015 · 4 comments
Labels

Comments

@darxriggs
Copy link
Contributor

When running ./packetbeat -e -c etc/packetbeat.yml -d "*" no output from publisher is logged.

When running ./packetbeat -e -c etc/packetbeat.yml -d "*,publish" the output from publisher is logged.

I would expect that -d "*" enables debug logging for publisher.

@urso
Copy link

urso commented Oct 27, 2015

the '*' option should work as it sets a bool being checked before any selectors. Can you provide some console output for comparison?

@andrewkroh
Copy link
Member

I think the cause is that logp.IsDebug doesn't handle * correctly.

https://github.com/elastic/libbeat/blob/master/publisher/preprocess.go#L61

@urso
Copy link

urso commented Oct 28, 2015

@andrewkroh you are right. And it's not the only selector being affected.

@ruflin ruflin added the bug label Oct 28, 2015
@tsg
Copy link
Contributor

tsg commented Nov 2, 2015

Fixed by elastic/libbeat#226.

@tsg tsg closed this as completed Nov 2, 2015
andrewkroh added a commit that referenced this issue Dec 2, 2015
tsg pushed a commit to tsg/beats that referenced this issue Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants