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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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