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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...