Skip to content

fix: error when alert event has no "_time" field #39

Description

@romain-filigran

Description

When triggering an alert action in the Splunk app, if the event does not contain the _time field, the alert action fails with the following error:
Error of type "float() argument must be a string or a number, not 'NoneType'"

This happens because the _time field is used to generate the date of the incident or incident response case, and the current implementation assumes that _time is always present.

Expected Output

The alert action should not fail when _time is missing.
The App should still create the incident / incident response case with a valid timestamp (Generate a timestamp based on the current processing time of the alert)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugType: something isn't working (fix:).

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions