Dashboards & Visualizations

Is there a way to ignore the 2nd value in a table cell ?

AKG1_old1
Builder

Hi,

In search query output, we are adding some columns from csv file. Some times there are duplicats entry in csv file. this causing to display multiple values in table cell. Is there a way to remove/ignore duplicate values from table cell ?

alt text

0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@agoyal

There are two ways to handle this scenario.

1st: You can change your search by adding eval for multivalue fields. like eval Tags= mvindex(Tags,0).

2nd: Allow matches from transform.conf.

[my_lookup]
filename    = my.csv
max_matches = 1

https://docs.splunk.com/Documentation/Splunk/7.2.0/Knowledge/Addfieldmatchingrulestoyourlookupconfig...

I prefer 2nd one.

Thanks

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

@agoyal

There are two ways to handle this scenario.

1st: You can change your search by adding eval for multivalue fields. like eval Tags= mvindex(Tags,0).

2nd: Allow matches from transform.conf.

[my_lookup]
filename    = my.csv
max_matches = 1

https://docs.splunk.com/Documentation/Splunk/7.2.0/Knowledge/Addfieldmatchingrulestoyourlookupconfig...

I prefer 2nd one.

Thanks

AKG1_old1
Builder

Thanks @kamlesh_vaghela !!

Can you please convert ur comment as answer.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@agoyal

Glad to help you. Please upvote and accept this answer.

Happy Splunking

0 Karma

AKG1_old1
Builder

Cheers!!

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...