Closed Bamfax closed 11 months ago
Hi @Bamfax I’ll investigate this as soon as possible but probably in a couple of weeks. Sorry for the delay
Hi @Bamfax, When I try your code with or without the two statements set to "null()", I don't have any error and the alerts are created accordingly. Are you sure your search is the same ?
With null():
Without null():
Hi @LetMeR00t,
thanks a lot for testing it. That is interesting that it works on your setup. It is a reproducible error here using the repro code as above. I wonder what the difference between our two setups might be. Maybe it is influenced by the configuration of the custom alert action. I should have provided that alongside the repro code. Here it is:
Also using a Splunk Trigger Condition of "For each result"
A sendalert with es_mode and blank unique field also triggers the error, so it should not come from the custom alert action configuration difference of referencing the eventset fields via $result.[fieldname]$
, [fieldname]
or static values.
Hi @Bamfax Can you try the following things in your setup :
Is it better ?
Hi @LetMeR00t,
I just tried it, but unfortunately it still gives the same error:
2023-12-20 19:35:02,641 ERROR pid=21891 tid=MainThread file=cim_actions.py:message:243 \| sendmodaction - signature="Unexpected error: 'ip'." action_name="thehive_create_a_new_alert" search_name="Test_ErrorUsingTaggedObs" sid="scheduler_ejAwMzRiaHktYTEw__appabc__RMD555c712c996669e92_at_1703097300_10671_E0D9E3AA-7BD8-4AB7-A575-DBD341ED1218" rid="0" app="appabc" user="userabc" action_mode="saved" action_status="failure"
Trying it via a "|sendalert" cmd which has the alert_title, tag, etc. statically configured, gives the same error.
Hi @Bamfax
Could you try to install the v3.2 recently published to test if you still have the error ? I’ll continue some tests but it would help me to know if this is still happening in the last released version.
Thank you
Hi @LetMeR00t,
yes, surely. I could also image that this may show a different behaviour with your adaptions to the observable tagging. But it will take me until end of January, as I need to adapt my interface first to the new 3.2 changes.
Hello @Bamfax , I'll release a v3.3 with few fixes in December so go for this latest one if you need so and keep me posted. I'll make some tests today on your issue on my side but my recent changes might have change the behavior. Thank you
I've done one test this morning and it worked with my latest changes:
As you can notice, no observable was created due to the missing value. A warning was added in the logs accordingly to detect this:
FYI, this is my savedsearch settings:
But I'm pretty sure the latest changes will solve your issue ...
I'd say we can then close this issue, as from 3.2 on the base-field of an observable will always need to be present. If it is not, e.g. ip:tags
being present, but not ip
, that's a clear error then.
Hi LetMeRoot,
would you be so kind to take a look at the following repro code? This code fails to execute with the error
2023-12-07 13:21:03,127 ERROR pid=704 tid=MainThread file=cim_actions.py:message:243 | sendmodaction - signature="Unexpected error: 'ip'." action_name="thehive_create_a_new_alert" search_name="SAS_Alert_Test_TestAlertToHiveDirect"
, when the last two eval statements (setting ip and user to null()) are removed.Thanks a lot for your time and help, Oliver
TA-thehive-cortex v3.1