Help using extracted fields in event definitions as custom field

Hello there, I have recently set up some extractors against a Syslog input, and I would like to use those extractions as custom fields in my event definition but can’t work out how to do it, or find on information on how to unless I’m just reading into it wrong.

My extractor creates a field called “IP_Address”. This works as expected.



What I want to do now is get that in an event definition so it comes up in the email / webhook alerts. Here is the template I’m using at the moment:

I’ve also tried ${source.IP_Address), ${IP_Address} and some others without the dollar sign and open curly bracket which just created static entries as expected.

How can I get my extracted field in the event definition as a custom field?

What kind of event are you doing. Aggregation events have some funny behaviors on custom fields.

Hi Joel, here’s a screenshot of the definition - is this what you wanted to see?
-Brett

When your event mat matches do you see the custom field in the event/alert page?

Hi,

We do this in the fields part in the event defenition.

in your case hostname should be IP_Address

I do see the field @Joel_Duffield

@Arie I had tried that previously, did change it back to that just now with no luck I’m afraid.

What is it what you see in this configuration when you click on/out more details under IP_Addres
in the summary page, when configured as desired.

Is IP_Addres the correct statement, for as I see it [ip_addr] is in one of your screenshots.

In our setup we see this:

It’s a little confusing but the [ip_addr] string you see forms part of the message. So in raw format it looks like

Apr 17 17:30:29 np-it02 phpipam-changelog[545596]: changelog | | ip_addr | 526 | add | 2024-04-17 07:30:29 | details: ,[subnetId]: 172.16.2.0/24 [Corporate] (id 9),[ip_addr]: 172.16.2.231

I’m extracting after the nth comma to grab the entire [ip_addr]: 172.16.2.231 string.
The extraction of that string (including [ip_addr] goes to the IP_Address field screenshotted above.

Hopefully that makes sense.

Any other suggestions or do I need to continue experimenting at this point?