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

[recievers/filelog] - key_value_parser not registered #13631

Closed
crobertson-conga opened this issue Aug 25, 2022 · 7 comments
Closed

[recievers/filelog] - key_value_parser not registered #13631

crobertson-conga opened this issue Aug 25, 2022 · 7 comments
Assignees
Labels
bug Something isn't working priority:p2 Medium receiver/filelog

Comments

@crobertson-conga
Copy link
Contributor

Describe the bug
The key value parser from stanza was merged in response to open-telemetry/opentelemetry-log-collection#455

However, it was never registered, so cannot be used as an operator in the filelog parser receiver.

Steps to reproduce
Have a operator step in a filelog receiver that uses type key_value_parser

in your filelog reciever

What did you expect to see?
key=value logs being parsed

What did you see instead?
An error upon startup:

Error: cannot build pipelines: failed to create "filelog" receiver, in pipeline "logs": unsupported type 'key_value_parser

What version did you use?
Version: 0.58.0

What config did you use?

config:
  receivers:
    filelog:
      include:
        - /var/log/pods/*/*/*.log
      exclude: []
      operators:
        - type: key_value_parser
          id: general-body-logfmt
          output: severity-parser-0
          parse_from: body

Environment
Doesn't matter

Additional context
Should be a matter of adding a new registration at

_ "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator/parser/csv"
and updating the documentation accordingly

@crobertson-conga crobertson-conga added the bug Something isn't working label Aug 25, 2022
@rehanpfmr
Copy link
Contributor

rehanpfmr commented Aug 27, 2022

@crobertson-conga Can this be assigned to me?

@evan-bradley
Copy link
Contributor

@rehanpfmr It's yours.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2022

Pinging code owners: @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@rehanpfmr
Copy link
Contributor

Thanks @evan-bradley

@djaglowski
Copy link
Member

Resolved by #14094

@jangaraj
Copy link
Contributor

jangaraj commented Sep 3, 2023

@djaglowski I don't see syslog parser in current register.go. Is it possible that is a root cause of unsupported type 'syslog_parser' error, when ocb is used?
Ref: https://stackoverflow.com/questions/77026536/custom-build-of-opentelemetry-collector-is-missing-operator-used-by-receiver

@djaglowski
Copy link
Member

@jangaraj, yes I agree. Thanks for the PR.

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

No branches or pull requests

5 participants