Splunk Search

How to access the raw data collected by Splunk?

sc2019
New Member
  1. I want to access the log files from Web servers, Micro Services, by protocol (HTTP, SOAP, FTP, etc.) or Databases.

  2. What are the aggregates which Splunk avails to user via the Splunk interface? (We know about volumes and response time but would like to know other protocols like return codes, etc.)

Tags (1)
0 Karma

solarboyz1
Builder

Splunk takes the raw data an indexes it, you can then run searches against the data.

You can access the data by running searches in Splunk, which can be done via the REST API:
https://dev.splunk.com/restapi

The following is a list of the aggregate functions that can be used:
https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Stats

Via rest, you could run a basic search like "index=*" , which would return the raw events.

You use the stats functions against fields in the data, "index=* | stats sum(kb) as "kb sent" by host"

What aggregates you can calculate will depend on the data you have, and what fields are available.

Splunk has several add-on available for parsing and reporting on data from common tools, systems, etc..

0 Karma

somesoni2
Revered Legend

I suggest you start from here:(Splunk Search Tutorial) https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchTutorial/Startsearching.

If you still have question about specific query/report that want to generate, then provide little more detailed requirement, sample data and expected output.

0 Karma
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...