-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Filebeat] Fix date parsing in GSuite/Google Workspace modules #24696
[Filebeat] Fix date parsing in GSuite/Google Workspace modules #24696
Conversation
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
@andrewkroh Looks like this same fix is needed https://github.com/elastic/beats/blob/d427453a9f311e00f91354da03fd3bbb99d82e50/x-pack/filebeat/module/google_workspace/login/config/pipeline.js#L67 to resolve #24692 |
The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default. By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by common.Time when going out as JSON. Fixes elastic#24694
954e99f
to
a3f22c0
Compare
run tests |
…ic#24696) * Fix date parsing in GSuite/login fileset The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default. By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by common.Time when going out as JSON. Fixes elastic#24694 * Apply fix to google_workspace Fixes elastic#24692 (cherry picked from commit a4a3ff0)
…ic#24696) * Fix date parsing in GSuite/login fileset The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default. By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by common.Time when going out as JSON. Fixes elastic#24694 * Apply fix to google_workspace Fixes elastic#24692 (cherry picked from commit a4a3ff0)
… (#24735) * Fix date parsing in GSuite/login fileset The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default. By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by common.Time when going out as JSON. Fixes #24694 * Apply fix to google_workspace Fixes #24692 (cherry picked from commit a4a3ff0)
… (#24736) * Fix date parsing in GSuite/login fileset The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default. By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by common.Time when going out as JSON. Fixes #24694 * Apply fix to google_workspace Fixes #24692 (cherry picked from commit a4a3ff0)
…ic#24696) (elastic#24736) * Fix date parsing in GSuite/login fileset The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default. By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by common.Time when going out as JSON. Fixes elastic#24694 * Apply fix to google_workspace Fixes elastic#24692 (cherry picked from commit 2a63518)
What does this PR do?
The format of Date#toUTCString was incompatible with the format accepted by Elasticsearch by default.
By writing a Date object from the JS pipeline this becomes a time.Time in the event that is formatted by
common.Time when going out as JSON.
Fixes #24694
Fixes #24692
Why is it important?
Fixes data ingesting exceptions and prevents event loss.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues