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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...