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

Closed
MJ12301 opened this issue Jul 6, 2024 · 5 comments
Closed

Do Filelog operators process slices? #33932

MJ12301 opened this issue Jul 6, 2024 · 5 comments
Labels

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.

@crobert-1
Copy link
Member

Removing needs triage based on code owner's feedback.

@MJ12301 Is there anything else that is needed here? If not, we can close this issue.

@crobert-1 crobert-1 removed the needs triage New item requiring triage label Jul 15, 2024
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

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

@github-actions github-actions bot added the Stale label Sep 16, 2024
@andrzej-stencel
Copy link
Member

Closing as the json_array_parser operator is available now.

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

4 participants