Route logs from combined_large.log to webapp1_index or webapp2_index based on log content ([webapp1] or [webapp2]).
Universal Forwarder: Windows (sending logs)
Indexer: Windows (receiving & parsing)
Logs contain [webapp1] or [webapp2]
Expect routing to happen on the Indexer
Sample log:
2025-05-03 16:41:36 [webapp1] Session timeout for user
2025-04-13 20:25:59 [webapp2] User registered successfully
[monitor://C:\logs\combined_large.log]
disabled = false
sourcetype = custom_combined_log
index = default
props.conf (on Indexer):
[custom_combined_log]
TRANSFORMS-route_app_logs = route-webapp1_index, route-webapp2_index
transforms.conf (on Indexer):
[route-webapp1_index]
REGEX = \[webapp1\]
DEST_KEY = _MetaData:Index
FORMAT = webapp1_index
[route-webapp2_index]
REGEX = \[webapp2\]
DEST_KEY = _MetaData:Index
FORMAT = webapp2_index
Verified file is being read
Confirmed btool loads configs
Restarted services
Re-indexed by duplicating the file
Logs not appearing in either webapp1_index or webapp2_index
Is this config correct?
Am I missing a key step or wrong config location?
Any way to debug routing issues?
Any help or insight would be greatly appreciated. Thanks in advance 🙏
sorry, for late response my issue has been fixed, thanks for your replies
Please share with the community what was wrong in your case - it might help others in the future.
Hi @Shakeer_Spl
Are you able to see the data land in *any* index? (e.g main?) If so, can you confirm the sourcetype matches that configured in inputs.conf?
I assume (but want to cheeck) that the indexes have been created on the Indexers, and that you have appropriate RBAC/access to view the contents?
Are you able to see the UF sending logs to _internal on your indexers? If not this would indicate that the issue lies with for output (from UF) or input (into IDX)
Are there any other props/transforms that apply to that sourcetype in your props.conf?
Sorry for all the questions (in addition to those already asked re HF etc) , there is a lot of establish in a situation like this!
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
At first glance it should work.
1. Are you by any chance using INDEXED_EXTRACTIONS?
2. Is your data sent straight from UF to indexers or do you have any HF in the middle?