-
Notifications
You must be signed in to change notification settings - Fork 385
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
Unable to querry date to cortex analyser #965
Comments
I don't think startDate is valid. From get_param you have config.* to obtain info from json and data.* to obtain info from object. |
**_Hello, Thank you for your help. I tried self.get_param("data.startDate") but this didn't worked. error message:_** "errorMessage": "Traceback (most recent call last): File "/opt/Cortex-Analyzers/analyzers/Nids_Analysis_Hive/Nids_Analysis_Hive.py", line 40, in Nids_Analysis_Hive().run() File "/opt/Cortex-Analyzers/analyzers/Nids_Analysis_Hive/Nids_Analysis_Hive.py", line 38, in run self.report({"Nids Result": self.get_param("data.startDate")}) File "/usr/local/lib/python3.7/dist-packages/cortexutils/analyzer.py", line 36, in get_param data = super(Analyzer, self).get_param(name, default, message) File "/usr/local/lib/python3.7/dist-packages/cortexutils/worker.py", line 136, in get_param return self.__get_param(self._input, name, default, message) File "/usr/local/lib/python3.7/dist-packages/cortexutils/worker.py", line 97, in __get_param return self.__get_param(new_source, name[1:], default, message) File "/usr/local/lib/python3.7/dist-packages/cortexutils/worker.py", line 95, in __get_param new_source = source.get(name[0])AttributeError: 'str' object has no attribute 'get'", Thank you. |
Ah, no wait sorry. |
Yeah I read the documentation about how to build an analyser and responder. I knew that this can be just done from from a responder. I just wanted to make sure of that ! So I can solve my problem by turning this to a responder, and I can print a report with a responder right? |
Yes.. that should work. You can take inspiration from this one |
Thank you for your help! I build my responder ! |
**_Hello, I am writing an analyser and I should be able to querry the alert date in order to perform my work. The result is always Null. Any help?
Nids_Analysis_Hive.json
Nids_Analysis_Hive.py
The Hive result:
Thank You.
The text was updated successfully, but these errors were encountered: