Getting Data In

Difference between | rest and | metadata?

splunkreal
Motivator

Hello,

could you tell me what is the difference between results from | rest and | metadata when trying to find, for example, latest event time per index?

Thanks.

* If this helps, please upvote or accept solution 🙂 *
0 Karma

goodsellt
Contributor

The rest command is designed as a caller out to the REST endpoints, if you're more comfortable using those for some queries. The metadata command is designed to look at the underlying indexed metadata for the events. Any searches you run designed to produce the same output should contain identical results since the data you're going after isn't any different, the only difference is the mode of access you're having Splunk use.

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, ...