Splunk Search

How to make a table using Server Status?

beepbop
Explorer

Hello everyone, I have a csv file which shows me the power status of the server i.e if the server is powered on or off. I want to make a table with powered on as individual row and powered off as another individual row and show the total no of powered on servers and powered off servers as count

Labels (3)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @beepbop,

the search is very simple, something like this:

supponing the you indexed the csv file in an index and you have a field called status:

index=your_index
| stats count by status

I hint to follow the Splunk Search Tutorial at https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial or some video in the YouTube Splunk Channel to understand hot to create searches.

Ciao.

Giuseppe

 

View solution in original post

0 Karma

beepbop
Explorer

Thankyou!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @beepbop ,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

gcusello
SplunkTrust
SplunkTrust

Hi @beepbop,

the search is very simple, something like this:

supponing the you indexed the csv file in an index and you have a field called status:

index=your_index
| stats count by status

I hint to follow the Splunk Search Tutorial at https://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/WelcometotheSearchTutorial or some video in the YouTube Splunk Channel to understand hot to create searches.

Ciao.

Giuseppe

 

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...