Hi Splunkers,
I plan to use props.conf and transforms.conf on the Heavy Forwarder (HF) to modify Windows data. Specifically, I need to replace the "&" character with "& " only in Event ID 4627 logs, while leaving all other Windows events unchanged. All Windows logs—including the modified ones—must then be forwarded from the HF to a third-party system.
Configured as below, but no luck.
transforms.conf
The sample:
Hi @chenfan
To modify these raw logs on a Heavy Forwarder, you could look at using INGEST_EVAL in transforms.conf with something like this:
props.conf
[xmlwineventlog] TRANSFORMS-fix_amp = fix_ampersand_encoding
transforms.conf
[fix_ampersand_encoding] INGEST_EVAL = _raw=if(match(_raw, "<EventID>4627</EventID>"), replace(_raw, "&", "&"), _raw)
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing.
Hi @chenfan
To modify these raw logs on a Heavy Forwarder, you could look at using INGEST_EVAL in transforms.conf with something like this:
props.conf
[xmlwineventlog] TRANSFORMS-fix_amp = fix_ampersand_encoding
transforms.conf
[fix_ampersand_encoding] INGEST_EVAL = _raw=if(match(_raw, "<EventID>4627</EventID>"), replace(_raw, "&", "&"), _raw)
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing.