I would like to use the "Log Event" alert action to store all fields that are in the result of the search into an index.
Is there a token (like $result.fieldname$) which gives back not only one specified field of the result but all fields?
It depends on your search - the events returned from the first part of your search would normally have an _raw field. However, this is often parsed down to a few fields, and if you have something like a stats or table command in your search, the _raw field is more than likely removed from the events.
Added to which in an alert, you only have access to the first result, so unless all the data is available in that first result, you won't be able to retrieve it.
Having said all that, if you simply want to write some events to a summary index, you can do that in your alert, however, I would caution you to make sure you understand the consequences.
@ITWhisperer Thanks for the answer.
You are right, the _raw field is removed completly.
Yes, I want to write some events to a summary index and I am aware of the collect command. The problem is, that I cannot use the Throttle option if I do it that way.
So my main goal would be to write some events to a summary index using an Alert Action to do that.
Please explain how you are trying to use the throttle option and why writing to a summary index is not appropriate for you?
@ITWhisperer I want to use the throttle option to stop writing to the summary index for a certain amount of time after some events have been written to the index.
Example: