-
Notifications
You must be signed in to change notification settings - Fork 500
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
Windows.Hayabusa.Rules Upload to elastic is broken #3856
Comments
Timestamps are now always strings in ISO format with a timezone. You might need to change your elastic schema or drop the index to have it recreate the schema. |
@scudette |
Yeah it looks like elastic does not like the keywords field - Elastic actually needs a proper schema (called a mapping) with proper types. It looks like if you rely on the automatic schema creation it makes the field "long" but it needs to be "long long" to handle this data type. So the issue seems unrelated to the timestamp change. I would recommend to try to drop the index again - elastic will guess the mapping depending on the first object to be uploaded so maybe this time the first keyword looked like a long. If you drop it again then maybe the next one will look like a long long. Generally elastic uploads should be tailored to the artifact they are uploading and have the data normalized to the schema. See for example https://docs.velociraptor.app/artifact_references/pages/elastic.eventlogs.sysmon/ You can fix the mapping currently in the index using the update remapping api First dump out the mapping then update keyword to long long instead of long |
after the 01/10/24 update to the Windows.Hayabusa.Rules artifact that added timestamp(epoch=System.TimeCreated.SystemTime) AS Timestamp to every select and to the where clause query. the ability to upload the data to elastic(using a simplified version of Elastic.Flows.Upload) has been broken.
the error it returns is as such
The text was updated successfully, but these errors were encountered: