-
Notifications
You must be signed in to change notification settings - Fork 589
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
Impossible to create many timelines from 1 OS index #3166
Labels
Comments
Perhaps this could workout, but I dont see it in routes. timesketch/timesketch/api/v1/resources/timeline.py Lines 459 to 533 in b9e32b1
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Timesketch API doesn't allow to create many timelines from 1 ES index and also has bug in TimelineListResource.
Currently I am not able to create 2 timelines using 1 OpenSearch index (not counting web upload of csv/json/plaso which supports that).
I want to have 1 index per sketch. I upload data directly to OpenSearch with psort (data is already with timeline id set properly). Currently I have found impossible to create 2 Timelines from such 1 index.
Things I have tried:
generate_timeline_from_es_index
timesketch/api_client/python/timesketch_api_client/sketch.py
Lines 1965 to 1970 in 68c5c9b
This doesnt allow passing
es_index_name
of index which already is assigned to other SearchIndex (index_obj.index_name is the actual name of opensearch index, not the same thing asindex_name
passed to this funciton.timesketch/timesketch/api/v1/resources/timeline.py
Lines 69 to 143 in b9e32b1
This won't work because
this will save to variable timeline_id ID of already existing searchindex (cool), but then it wont enter IF when Timeline is created
timesketch/timesketch/api/v1/resources/timeline.py
Lines 140 to 143 in b9e32b1
Whats strange it will return TIMELINE object based on the SEARCHINDEX ID which is a BUG, because if you look at tables of Searchindex and TImelines theirs IDs dont match up.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Similar to the situation when 2 csv/json files are uploaded to the same index, it should be also possible from API
Screenshots
N/A
Desktop (please complete the following information):
N/A
Additional context
I can probide if asked
The text was updated successfully, but these errors were encountered: