Hello All,
We have two separate servers with host name ABC & xyz, these servers are sending data to Syslog index via port 5514.
We wanted to send xyz host data to separate index for example syslog1.
Kindly help me out on how to achieve this.
Hi bharathkumarnec,
Use props.conf
and transforms.conf
for this either on the HWF or IDX if you don't have a HWF
#props.conf
[syslog]
TRANSFORMS-routing_for_syslog1_index = route_to_syslog1_index
#transforms.conf
[route_to_syslog1_index]
DEST_KEY = _MetaData:Index
SOURCE_KEY = MetaData:Host
REGEX = xyz
FORMAT = syslog1
This will route all events from host xyz
into the syslog1
index.
Cheers, MuS
Hi bharathkumarnec,
Use props.conf
and transforms.conf
for this either on the HWF or IDX if you don't have a HWF
#props.conf
[syslog]
TRANSFORMS-routing_for_syslog1_index = route_to_syslog1_index
#transforms.conf
[route_to_syslog1_index]
DEST_KEY = _MetaData:Index
SOURCE_KEY = MetaData:Host
REGEX = xyz
FORMAT = syslog1
This will route all events from host xyz
into the syslog1
index.
Cheers, MuS
Thanks for the reply.
We have hosts with xyz, xyz1, xyz2.
So in regex can we give xyz*, will it take??
This is my actual props & transforms settings:
[source::tcp:5514]
TRANSFORMS-idx = syslog_idx
[syslog_idx]
SOURCE_KEY = _raw
REGEX = .+
DEST_KEY = _MetaData:Index
FORMAT = syslog
Do I need to add the above stanza's separately or under these??
Below one worked well:
[syslog]
TRANSFORMS-routing_for_syslog1_index = route_to_syslog1_index
Thanks for the help!