I am ingesting data from the Splunk Add on for O365. I want to use the Eval Expression filter within an ingestion action to filter what email addresses we ingest data from. Sampling the data is easy but the next bit isn't. I drop events where the RecipientAddress is not splunk.test@test.co.uk.
Creating an | eval within a search is simple but creating something that works for a filter using eval expression, which drops Events is where i am struggling.
Our Exchange/Entra team are having problems limiting the online mailboxes the Splunk application which is why I am looking at this workaround.
Ignore the application thats tagged as we are using Enterprise 9.3.4. Can you help?
In a regular search, RecipientAddress is extracted at search time, so you can use it directly in eval. But in Ingest Actions, you're working with the raw event stream before field extractions happen.
But you can use this as workaround to drop events that contain this email address.
NOT match(_raw, "splunk\.test@test\.co\.uk")
Regards,
Prewin
Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!
The typical issue when working in the ingest pipeline is that you don't have search-time field extracted at this point. You must work on raw event contents.
Can you share the eval you created which works in the search and I can check this against Ingest Actions.
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
I might have a solution now by using this statement:
NOT match(_raw,"splunk.test@test.co.uk")
In a regular search, RecipientAddress is extracted at search time, so you can use it directly in eval. But in Ingest Actions, you're working with the raw event stream before field extractions happen.
But you can use this as workaround to drop events that contain this email address.
NOT match(_raw, "splunk\.test@test\.co\.uk")
Regards,
Prewin
Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!
Thank you Prewin that has worked