question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Elasticsearch could fail to ingest output from esedb/srum

See original GitHub issue

Description of problem:

When uploading data to elasticsearch/timesketch via psort.py, elastic could fail to ingest most of esedb/srum event ( and also windows:registry:winlogon event). This case append when the first srum event send to elastic have an application en user_identifier that were not resolved against the SruDbIdMapTable. In this case elasticsearch map internally the user_identifier and application field as long integer and failed to ingest data where these field are text.

Command line and arguments:

Source data:

could not provide

Plaso version:

For example 20200717

Operating system Plaso is running on:

Ubuntu

Installation method:

This issue could be resolved by two different way (I have tested both) :

  • forcing the mapping of these to field when the index is created { "properties": { "application": { "type": "text", "fields": {"keyword": {"type": "keyword"}}, }, "user_identifier": { "type": "text", "fields": {"keyword": {"type": "keyword"}}, }, } }
  • just cast these value to string when they are created : ( replace line 333 of https://github.com/log2timeline/plaso/blob/master/plaso/parsers/esedb_plugins/srum.py : record_value = identifier_mappings.get(record_value, record_value) -> record_value = str(identifier_mappings.get(record_value, record_value))

Imo the second option is the best but I let you see which one you prefer

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
joachimmetzcommented, Aug 13, 2020

@william-billaud thx, I’ll have closer look when time permits. @kiddinn who indicated going to work on a new TS and ES output module https://github.com/log2timeline/plaso/issues/3097

0reactions
kiddinncommented, Aug 16, 2020

thank you for this, I’ll take a closer look at this shortly, since I will be re-designing the ES and TS outputs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix common cluster issues | Elasticsearch Guide [8.5]
A cluster in which nodes leave unexpectedly is unstable and can create several issues. « Troubleshooting Error: disk usage exceeded flood-stage watermark, index ......
Read more >
Ingest pipelines | Elasticsearch Guide [8.5]
You can create and manage ingest pipelines using Kibana's Ingest Pipelines feature or the ingest APIs. Elasticsearch stores pipelines in the cluster state....
Read more >
Configure the Elasticsearch output | Packetbeat Reference ...
For more information, see Parse data using an ingest pipeline. You can set the ingest pipeline dynamically by using a format string to...
Read more >
Elasticsearch output plugin | Logstash Reference [8.5]
This plugin uses the Elasticsearch bulk API to optimize its imports into Elasticsearch. These requests may experience either partial or total ...
Read more >
Configure the Elasticsearch output | Fleet and ...
The Elasticsearch output sends events directly to Elasticsearch by using the Elasticsearch HTTP ... If the certificate is not specified, startup will fail....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found