Does anyone know why the tag based search is not working in metric based commands. Is there any restriction or any alternative approach? Working here, index=_internal tag=windows_lab_iis No Results for this command, | mcatalog values(metric_name) WHERE tag=windows_lab_iis index=metrics* BY index, host
... View more
Hi, Since you want to do it in HF, you can modify the input stanza to specify the default index. [tcp://9991]
index = supplier1
[tcp://9992]
index = supplier2 OR you can add the props & transforms transforms.conf (if you want to filter you can use sourcekey & regex) [tcp9991_syslog_supplier1]
SOURCE_KEY = MetaData:Host
REGEX = (10.*.*.*)
DEST_KEY = _MetaData:Index
FORMAT = supplier1
[tcp9992_syslog_supplier2]
SOURCE_KEY = MetaData:Host
REGEX = (10.*.*.*)
DEST_KEY = _MetaData:Index
FORMAT = supplier2
... View more
Thanks, Below command fix that issue.
chmod 400 /opt/splunk/var/lib/splunk/kvstore/mongo/splunk.key
I was not able to open Splunk Add on builder TA due to this issue. Now its been fixed by changing the permission to the mongo key file.
... View more
its possible to pass the token through saved search, but token field name is the one you need to use it in your savedsearch report query.
if you want to exexute : |savedsearch "Syslog Report" token_SourceIPAddress="$ip$"
your saved search should be like,
index=someindex src_ip_field=$token_SourceIPAddress$
... View more