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

Do Filelog operators process slices? #33932

Open
MJ12301 opened this issue Jul 6, 2024 · 2 comments
Open

Do Filelog operators process slices? #33932

MJ12301 opened this issue Jul 6, 2024 · 2 comments
Labels
enhancement New feature or request needs triage New item requiring triage receiver/filelog

Comments

@MJ12301
Copy link

MJ12301 commented Jul 6, 2024

Component(s)

receiver/filelog

Is your feature request related to a problem? Please describe.

I have log files which contain JSON arrays, when I try using json_array_parser, OTEL says that the operator is disabled, and refuses to start. I am using version OTEL collector contrib 0.104.0.

How can I apply operations or access slice elements (e.g. attributes.my_array[0])?

Describe the solution you'd like

To be able to process elements inside slices, or a certain operator to copy a slice element (Or extract them) to a field.

Describe alternatives you've considered

No response

Additional context

No response

@MJ12301 MJ12301 added enhancement New feature or request needs triage New item requiring triage labels Jul 6, 2024
Copy link
Contributor

github-actions bot commented Jul 6, 2024

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@djaglowski
Copy link
Member

If you are using a recent version of the collector, you can enable the logs.jsonParserArray feature gate to enable this operator. I've opened #33948 to upgrade this gate to beta, which will enable it by default going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage receiver/filelog
Projects
None yet
Development

No branches or pull requests

2 participants