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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...