We want to change sourcetype and then send data to two different Splunk Indexers.
What is happening is the sourcetype is getting changed (that means first props.conf stanza is working) BUT the seconds props.conf stanza present in the apps folder is not working (It is only sending the logs to default output group).
Configuration files for change sourcetypes are located in the /system/local folder and route data configuration files are in the /apps/application/local/ folder.
Does anyone have similar issue? Thanks!
[source::/abc/xyz.log] TRANSFORMS-changesourcetype = st
[st] REGEX = \.*\\.* FORMAT = sourcetype::sourcetype1 DEST_KEY = MetaData:Sourcetype
[sourcetype1] TRANSFORMS-routing = route_data
[route_data] REGEX = . DEST_KEY = _TCP_ROUTING FORMAT = indexer1, indexer2