Splunk Enterprise

Splunk - How to generate an “identity column” id 1,2,3...

gunnist
Explorer

We're logging info/error logs in splunk/db. We're using .net and nlog.

In db, we're getting it in the right order when sorting because of identity column.

In Splunk, it's coming out of order if many log entries have the same date.

Is there a chance to tell splunk to create a "identity column" for everything that is piped into it? We're piping the logs into Splunk using HTTP Event Collector.

Thank you!

Gunnar

Labels (1)
0 Karma

s2_splunk
Splunk Employee
Splunk Employee

No, not really. A Splunk indexing tier usually consists of many indexers, all receiving data from various sources independently. There is no coordinating service that can produce such an event sequence number. You would have to include such a unique order key in your source data and use that to sort when searching, if timestamp granularity is not enough to maintain time series order.

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...