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
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

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, ...