Getting Data In

How do I get the contents of a CSV into a Splunk dashboard through a search query?

dcresido
New Member

Hi everyone!

I'm fairly new to Splunk. I just wanted to ask about the feasibility of my use case and how can I make it work.

Use case:

  1. I have a PowerShell script that runs every week that checks the status of my services on my list of servers remotely. After verifying the status of each service, it'll then return the results in the form of CSV file.
  2. Assuming that CSV file is already on-boarded to Splunk, I want to search it using a search query in Splunk and then create a dashboard based on the recent pull of data.

Will this be possible? If yes, do you have links that I can use so that I can just follow on how can I achieve my use case?

Sample CSV file.
Application,ServerName,Process,State
AppA,ServerA,ServiceA,Running
AppA,ServerA,ServiceB,Running
AppA,ServerA,ServiceC,Running
AppA,ServerA,ServiceD,Stopped
AppA,ServerB,ServiceA,Running
AppA,ServerB,ServiceB,Stopped
AppA,ServerB,ServiceC,Stopped
AppA,ServerB,ServiceD,Stopped

0 Karma

vishaltaneja070
Motivator

Hello @dcresido

You have two options:

  1. Schedule that script using Splunk and insert the output of Splunk. Please find the below link which can help you: link text
  2. Directly monitor the CSV file using Splunk, so whenever any changes are made in the file, it will index the changes in Splunk. Please find the below link which can help you: link text

So you have two options to solve the above problem. Choose which ever seems more feasible to you.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...