Splunk Search

Search not returning a result i know is in my source

jimjohn
Path Finder

Hi All,

I am new to splunk and when I try to search an excel file with one of the columns like id i am not getting any result.Can you please help me.

Thanks Jim

Id Project Reporter Assigned To Priority Severity Reproducibility 0032835 * Reporting (Prod) JIm, JOHN normal minor have not tried.

I have an CSV file with header in first line and data as second line.

When i try to search like this source="C:\UsersSplunk\ACsv_exp.csv" i gettign all the rows in excel file.

When i modify serach like source="C:\Users\30136321\Desktop\Splunk\MantisCsv_exp.csv" "id=0032835" i am getting "No results found.." Id 0032835 is present in CSV file

For inputing the file "I choose From files and directories" option and for indexing i opt for "Continuously index data from a file or directory this Splunk instance can access" option.

Can you help me ?

Thanks in advance.

Tags (2)
0 Karma

lguinn2
Legend

source="C:\UsersSplunk\ACsv_exp.csv" should definitely give you all the rows in the file.

source="C:\Users\30136321\Desktop\Splunk\MantisCsv_exp.csv" "id=0032835" searches for the string id=0032835, which is obviously not in your file. Try one of these

source="C:\Users\30136321\Desktop\Splunk\MantisCsv_exp.csv" 0032835

The above searches for 0032835 anywhere in the file.

source="C:\Users\30136321\Desktop\Splunk\MantisCsv_exp.csv" id=0032835

Without quotes, id=0032835 searches for the value 0032835 in a field named id. This will work only if you have defined the fields in your file to Splunk. If you set the sourcetype of the input to CSV, then this should work.

piebob
Splunk Employee
Splunk Employee

jimjohn, if this answer solved your problem, please accept it by checking the box. it's also polite to upvote the answer if it helped you 🙂

0 Karma

jimjohn
Path Finder

Yes now its working for me.Wat i did wrong is instead of searching with Id I search with id.

0 Karma

linu1988
Champion

what is the sourcetype provided? Try searching with that. And how do you get excel file when searching the csv file!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...