Getting Data In

log to metric from the output of a script

u568675
New Member

we are utilizing log2metrics in the form of a script writes a csv file, then Splunk reads that csv file and converts it to metric format. I am wondering if we can forego the intermediary csv file and perform the log2metric conversion directly from the output of the script, similar to a scripted input for an event index.

0 Karma

tauliang
Communicator

Yes, assume that the correct fields are readily available, your script can write into a metrics index via TCP/UDP or from HTTP/HTTPS clients. You do NOT have to have an intermediary CSV file.

Get Updates on the Splunk Community!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...