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

Make sure filelog receiver uses file_storage for checkpointing #567

Merged
merged 2 commits into from
Nov 1, 2022
Merged

Make sure filelog receiver uses file_storage for checkpointing #567

merged 2 commits into from
Nov 1, 2022

Conversation

hvaghani221
Copy link
Contributor

Fixes #564

storage parameter wasn't configured. So, it wasn't reading the checkpoint at all.

@hvaghani221 hvaghani221 requested review from a team as code owners October 20, 2022 10:25
@hvaghani221 hvaghani221 changed the title Added storage config in filelog for checkpoint Make sure filelog receiver uses file_storage for checkpointing Oct 20, 2022
Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - please make sure to resolve conflicts.

@hvaghani221 hvaghani221 merged commit c30393f into signalfx:main Nov 1, 2022
jvoravong added a commit to jvoravong/splunk-otel-collector-chart that referenced this pull request Dec 2, 2022
jvoravong added a commit to jvoravong/splunk-otel-collector-chart that referenced this pull request Dec 3, 2022
jvoravong added a commit to jvoravong/splunk-otel-collector-chart that referenced this pull request Dec 3, 2022
vinzent added a commit to vinzent/splunk-otel-collector-chart that referenced this pull request Mar 3, 2023
Currently migrated fluentd checkpoint files are not used due to missing
storage param to the journald

According docs cursors/positions/checkpoints are only persisted on disk, if
storage param is given. See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/journaldreceiver/README.md

Equivalent to filelog change in signalfx#567
vinzent added a commit to vinzent/splunk-otel-collector-chart that referenced this pull request Mar 3, 2023
… attribute

If `storage: file_storage` param is not configured, the migrated fluentd
position file won't be used and cursor won't ever be persisted to disk.

Also the Splunk `source` field is currently missing. This is read by the
splunkhec exporter from the `com.splunk.source` attribute.

See:
* https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/filelogreceiver/README.md
* https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/splunkhecexporter/README.md
* signalfx#567
dmitryax pushed a commit that referenced this pull request Mar 3, 2023
Currently migrated fluentd checkpoint files are not used due to missing
storage param to the journald

According docs cursors/positions/checkpoints are only persisted on disk, if
storage param is given. See https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/journaldreceiver/README.md

Equivalent to filelog change in #567
dmitryax pushed a commit that referenced this pull request Mar 3, 2023
….source attribute (#681)

If `storage: file_storage` param is not configured, the migrated fluentd
position file won't be used and cursor won't ever be persisted to disk.

Also the Splunk `source` field is currently missing. This is read by the
splunkhec exporter from the `com.splunk.source` attribute.

See:
* https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/filelogreceiver/README.md
* https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/splunkhecexporter/README.md
* #567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Otel collector reading old logs after migration from SCK
3 participants