Splunk Search

What is the recommended method for sending multi-dimension metrics from .NET app to Splunk Cloud?

insightseval
Engager

I've had a read of various methods for achieving this and find myself confused. As far as I can tell there are the following possibilities:

  1. Use Splunk's .NET trace listeners to send to Splunk Cloud. However, the data sent is a simple string, not a set of user defined distinct dimensions.
  2. Go one level lower and use the Common library to send a serialisable object directly to Splunk's HTTP Event Collector. However, I can only find trivial sample code but not any decent C# API documentation that describes things such as batching etc.
  3. Write data to a file and use a Universal Forwarder. This comes with robustness out of the box (and seems to be the recommended approach), but I haven't found anything that describes required file format(s). Our requirement is for our application to log a variety of metrics each with their own set of dimensions - how is this achieved when writing to a file for the Forwarder to pick up?

So before I spend more time on evaluating whether Splunk Cloud is suitable for us, I'd like to know what is the recommended approach and where can I find details of how to achieve this (with actual links).

Thanks

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...