|
I have a sql that returns rows with values MachineName, Errors ABC 5 I would like value of MACHINENAME column to be assigned to the host variable. I read this article http://www.splunk.com/base/Documentation/latest/Admin/Overridedefaulthostassignments but wasn't sure how to set the host variable in my particular case. My Transforms file looks like [xmlkv-extraction] and Props looks like [ErrorMissingObject] I am wondering if I can use REPORT-xmlkv and TRANSFORM-xmlv in one file |
|
The link you already found is the right starting point, but maybe this will help clarify. transforms.conf:
props.conf:
In transforms.conf, we're telling it to match as many non-space characters as possible at the beginning of a line. Then, assign it to the hosts value. In props.conf, note that you need to use I'm assuming from your current props.conf that |