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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...