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

Inspector2 Log ingesting fail due to timestamp formatting change #457

Open
lafayette-soc opened this issue Jun 25, 2024 · 1 comment
Open

Comments

@lafayette-soc
Copy link

AWS recently updated the timestamp formatting on the inspector v2 log "updateAt" field,

The old timestamp looks like "updatedAt":"Jun 18, 2024, 12:27:04 AM"
The new timestamp looks like "updatedAt":"Thu Jun 20 01:47:55.779 UTC 2024"

This change cause es-loader function failed to load any new inspector log into OpenSearch

@qmugnier
Copy link

qmugnier commented Nov 11, 2024

Here are my two cents for this issue. Not sure why nobody else noticed:
Replace in sf_inspector.py

  #logdata['updatedAt'], '%b %d, %Y, %I:%M:%S %p').timestamp())) becomes
    logdata['updatedAt'], '%a %b %d %H:%M:%S.%f %Z %Y').timestamp()))

Same thing in aws.ini for the inspector block:
timestamp_key = updatedAt
timestamp_format = %a %b %d %H:%M:%S.%f %Z %

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

No branches or pull requests

2 participants