Skip to content

[CLI] events group to add comments and tags to an event - #2604

Merged
jaegeral merged 34 commits into
google:masterfrom
jaegeral:2023-03_cli_add-event_comment
Mar 16, 2023
Merged

[CLI] events group to add comments and tags to an event#2604
jaegeral merged 34 commits into
google:masterfrom
jaegeral:2023-03_cli_add-event_comment

Conversation

@jaegeral

@jaegeral jaegeral commented Mar 9, 2023

Copy link
Copy Markdown
Collaborator

This new cli group allows to annotate events in Timesketch.
It allows you to add comments to a specific event in a Timesketch sketch.

  • comments (comma seperated)
  • tags (comma seperated)

Comments can be any text that you want to add to an event. They can be used to provide additional information about the event, to track changes to the event over time, or to communicate with other users about the event.

Comments are stored in the Timesketch database and can be accessed by anyone who has access to the sketch. They can also be exported to a file or shared with other users.

Adding comments to events is a powerful way to get more out of Timesketch. It can help you to keep track of your data, to communicate with other users, and to make better decisions about your data.

Example:

 timesketch events annotate --event-id A9BGwYYBe0OIiBUpWy3U --timeline-id 19 --output-format json --tags foobar2 --comments "adasd","comment2"
{'meta': {'comments': [{'comment': 'adasd', 'created_at': 'Fri, 10 Mar 2023 13:06:28 GMT', 'id': 3, 'updated_at': 'Fri, 10 Mar 2023 13:06:28 GMT', 'user': {'username': 'dev'}}, {'comment': 'comment2', 'created_at': 'Fri, 10 Mar 2023 13:06:28 GMT', 'id': 4, 'updated_at': 'Fri, 10 Mar 2023 13:06:28 GMT', 'user': {'username': 'dev'}}]}, 'objects': {'datetime': '2023-03-04T11:31:12', 'key': 'value', 'key2': 'value2', 'message': 'foobar', 'tag': ['foobar2', 'foobar'], 'timestamp': 1677929472000000, 'timestamp_desc': None}}

@jaegeral
jaegeral marked this pull request as ready for review March 9, 2023 13:58
@jaegeral
jaegeral requested a review from tomchop March 9, 2023 14:05
@berggren
berggren self-requested a review March 10, 2023 07:27
Comment thread cli_client/python/timesketch_cli_client/commands/timelines.py Outdated
@jaegeral jaegeral changed the title [CLI] add comment to event [CLI] event group to add comments and tags to an event Mar 10, 2023
@jaegeral jaegeral changed the title [CLI] event group to add comments and tags to an event [CLI] events group to add comments and tags to an event Mar 10, 2023
Comment thread cli_client/python/timesketch_cli_client/commands/sketch.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/timelines.py
Comment thread cli_client/python/timesketch_cli_client/commands/events.py
@jaegeral
jaegeral requested a review from berggren March 10, 2023 14:40
Comment thread cli_client/python/timesketch_cli_client/commands/events.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/events.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/events.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/events.py
Comment thread cli_client/python/timesketch_cli_client/commands/events.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/events_test.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/timelines.py
jaegeral and others added 5 commits March 10, 2023 16:13
@jaegeral
jaegeral requested review from berggren and tomchop March 10, 2023 15:24

@berggren berggren left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will pick up on monday

@jaegeral
jaegeral requested review from berggren and tomchop March 15, 2023 08:47
Comment thread cli_client/python/timesketch_cli_client/commands/events.py
Comment thread cli_client/python/timesketch_cli_client/commands/events.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/events_test.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/events.py Outdated
Comment thread cli_client/python/timesketch_cli_client/commands/events.py Outdated
jaegeral and others added 2 commits March 16, 2023 13:57
Co-authored-by: Johan Berggren <jberggren@gmail.com>
@jaegeral
jaegeral requested a review from berggren March 16, 2023 13:07
@jaegeral
jaegeral dismissed tomchop’s stale review March 16, 2023 14:38

we spoke about the changes

@jaegeral
jaegeral merged commit d55e8b6 into google:master Mar 16, 2023
@jaegeral
jaegeral deleted the 2023-03_cli_add-event_comment branch March 16, 2023 14:38
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

Successfully merging this pull request may close these issues.

3 participants