Getting Data In

matching value of two fields csv file with some value and return value of third field

ektasiwani
Communicator

Hi,

My requirement is to match two fields of csv file and get value of third field.
I have student name and roll number and i need to match both from csv file and get its marks.

For example:
file.csv
name rollno marks
A 01 456
B 02 500
c 03 600

how to get marks of student A with roll no 01.
i want to do this by splunk query.

Tags (3)
0 Karma
1 Solution

lguinn2
Legend

First, if this is a CSV file, it needs to be comma-separated. If you have indexed this data into Splunk, the search is trivial:

name=A rollno="01" | table name rollno marks

This will list all entries for the student named "A" with a rollno of "01".

View solution in original post

lguinn2
Legend

First, if this is a CSV file, it needs to be comma-separated. If you have indexed this data into Splunk, the search is trivial:

name=A rollno="01" | table name rollno marks

This will list all entries for the student named "A" with a rollno of "01".

ektasiwani
Communicator

ya thanks.. its working 🙂

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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