All Apps and Add-ons

How to get the Earliest/latest events in a Hadoop index?

_smp_
Builder

Is there a way to determine the earliest/latest events in an index that has been moved off to Hadoop? I'm running Splunk 7.0.2.

0 Karma

rdagan_splunk
Splunk Employee
Splunk Employee

You are correct, when you roll data to Hadoop, the sources is the only available | metadata option
For example, | metadata type=sources index=splunkaccesscombine_archive
Looking at HDFS, I see 4 files and one of them is bucket-metadata.seq, which contains the host and sourcetype. However, I suspect that | metadata does not look inside that file.

0 Karma

_smp_
Builder

Quick update...continued testing confirms that the type=sources is the only | metadata option that returns any results. The hosts and sourcetypes options do not. I'm sure there's a good reason for this, and if anyone knows, I'd be grateful for an explanation.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...