I am trying to pull incoming tcp data into the Metrics Store using this information:
http://docs.splunk.com/Documentation/Splunk/7.0.0/Metrics/GetMetricsInOther#Get_metrics_in_from_clients_over_TCP.2FUDP
Currently the data is coming in to an event index and the _raw field looks like this:
2017-11-29 18:43:22.807 +0000 Tag="Channel1.Device1.Tag1" Value="1523" Quality="good"
We would like to pull this into the Metrics Store with these fields
metric_name Tag
_value Value
_time _time
(We also want the Quality, but I'm ignoring that until I get the basics.)
Created a new port for the data to come in.
Source Sourcexxxxx
Source Type Typexxxxx
index indexxxxxx
The index (indexxxxx) is a metrics index
I edit configuration files as below and restart Splunk. I get two errors:
Index Processor: Metric value= is not valid for source=Sourcexxxxx, sourcetype=Typexxxxx, host=Hostxxxxx, index=index51115. Metric event data with an invalid metric value would not be indexed. Ensure the input metric data is not malformed.
Index Processor: Metric name is missing for source=Sourcexxxxx, sourcetype=Typexxxxx, host=Hostxxxxx, index=indexxxxxx. Metric event data without metric name is invalid and would not be indexed. Ensure the input metric data is not malformed.
What am I doing wrong? Thanks in advance for your help.
props.conf
[Typexxxxx]
TIME_FORMAT = %F %H:%M:%S.%Q %z
TRANSFORMS-test_metric_name = test_name
TRANSFORMS-test_metric_value = test_value
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
pulldown_type = 1
category = Metrics
transforms.conf
[test_name]
REGEX = "Channel1.Device1.(\S+)"
FORMAT = metric_name::$1
WRITE_META = true
[test_value]
REGEX = Value="(\S+)"
FORMAT = _value::$1
WRITE_META = true
fields.conf
[metric_name]
INDEXED=true
[_value]
INDEXED=true
... View more