How to create a new analyzer #2526
-
Hi! I'm trying to create my own analyzer but there is not a lot of information on Internet.
I saved my file "win_test.py" and add a line in init.py to import my file : But when I try to use it in the web application with my timeline, the status stays in "PENDING".
Any ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, let me try to help you get started with the analyzer development. Based on your provided information I assume the problem is with the missing In general I would recommend to use our scaffold script to help you with setting up all necessary files for the analyzer development: https://l2tscaffolder.readthedocs.io/en/latest/sources/user/Installation.html#install-from-sources
If you want to continue without the scaffold template, try adding the following function to your analyzer: def __init__(self, index_name, sketch_id, timeline_id=None):
"""Initialize The Sketch Analyzer.
Args:
index_name: Opensearch index name
sketch_id: Sketch ID
timeline_id: Timeline ID, default is None
"""
self.index_name = index_name
super().__init__(index_name, sketch_id, timeline_id=timeline_id) |
Beta Was this translation helpful? Give feedback.
-
FYI: |
Beta Was this translation helpful? Give feedback.
Hi, let me try to help you get started with the analyzer development.
Based on your provided information I assume the problem is with the missing
__init__()
function.In general I would recommend to use our scaffold script to help you with setting up all necessary files for the analyzer development: https://l2tscaffolder.readthedocs.io/en/latest/sources/user/Installation.html#install-from-sources
l2tscaffolder
from source and then switch to your timesketch root directory and runl2t_scaffolder.py
.timesketch
&sketch_analyzer
.analyzers/
folder and modifies the