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

[receiver/mongodbatlas] Audit log timestamp parsing fails to parse on 4.2 clusters #14168

Closed
BinaryFissionGames opened this issue Sep 16, 2022 · 1 comment · Fixed by #14173
Closed
Labels
bug Something isn't working priority:p2 Medium receiver/mongodbatlas

Comments

@BinaryFissionGames
Copy link
Contributor

What happened?

## Description

When scraping 4.2 clusters, it seems that timestamps are formatted like this: `2022-09-16T15:26:52.563+0000`, but on 5.0 it's formatted like this: `2022-09-16T15:26:52.563+00:00`.

This causes the timestamp to fail to parse correctly.

Collector version

c0666b6

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

Time failed to parse correctly	{"kind": "receiver", "name": "mongodbatlas", "pipeline": "logs", "error": "parsing time \"2022-09-16T15:38:11.184+0000\" as \"2006-01-02T15:04:05.000-07:00\": cannot parse \"+0000\" as \"-07:00\""}

Additional context

No response

@BinaryFissionGames BinaryFissionGames added bug Something isn't working needs triage New item requiring triage labels Sep 16, 2022
@BinaryFissionGames BinaryFissionGames changed the title [mongodbatlasreceiver] Timestamp - audit log fails to parse on 4.2 clusters [mongodbatlasreceiver] Audit log timestamp parsing fails to parse on 4.2 clusters Sep 16, 2022
@BinaryFissionGames BinaryFissionGames changed the title [mongodbatlasreceiver] Audit log timestamp parsing fails to parse on 4.2 clusters [receiver/mongodbatlas] Audit log timestamp parsing fails to parse on 4.2 clusters Sep 16, 2022
@evan-bradley evan-bradley added priority:p2 Medium receiver/mongodbatlas and removed needs triage New item requiring triage labels Sep 16, 2022
@github-actions
Copy link
Contributor

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

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/mongodbatlas
Projects
None yet
2 participants