Getting Data In

Extracting fields and values using csv in splunk

priyaramki16
Path Finder

Hi....I am relatively new to Splunk...

So i am uploading a csv file as a input to splunk and trying to plot charts....The thing I have the contents of csv file in a specific format...

Example:

priyaramki16_0-1591774499708.png

so when i upload this csv to splunk it creates a table like this

priyaramki16_1-1591774982345.png

The problem is the Names are not shown for certain rows (even though the user knows from seeing the csv that first 5 rows belong to Raja and next 5 rows belong to Pragya) and only in some rows Names can be seen..

Is there anything we can do in splunk internally to solve this...Any help would be great!! Thanks!!

Labels (1)
0 Karma
1 Solution

to4kawa
Ultra Champion

check 

Lookup table files

View solution in original post

harsmarvania57
Ultra Champion

Hi,

In your CSV file all cell are not filled in "Name" column and due to that you can't see name populated in each row in splunk, you can use below query to achieve this.

| inputlookup your_file.csv | filldown Name

priyaramki16
Path Finder

| inputlookup source_file_name.csv 

This search does not work for me...It gives me statistics(0) ...
Could there be any reason for this

0 Karma

to4kawa
Ultra Champion

check 

Lookup table files

priyaramki16
Path Finder

Thank you so much!! Got it

0 Karma

to4kawa
Ultra Champion

スクリーンショット 2020-06-10 16.58.20.png

I create CSV and search.
so your CSV is wrong, I guess.

0 Karma

priyaramki16
Path Finder

I used to display the content as table using this command in search

 

table Name, Date, Icecream_purchased, Choco_purchased

 

Using as table can help in creating Charts

For chart creation:

|chart value(Icecream_purchased),value(Choco_purchased) over Name by Date

Is there a way to get this chart if I use inputlookup?

 

 

0 Karma

to4kawa
Ultra Champion
| inputlookup purchased.csv
| filldown Name
| xyseries Date Name Choco_purchased Icecream_purchased

you don't need chart, I guess.

priyaramki16
Path Finder

| inputlookup source_file_name.csv 

This search does not work for me...It gives me statistics(0) ...
Could there be any reason for this

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...