Dashboards & Visualizations

How to highlight specific keywords from field and display on dashboard?

aravindpadmin
Explorer

Hi I have the Sample dashboard. Client need to get top 5 tweets related to applications where the specific application keywords needs to be highlighted. For example : TweetText is "what about the elderly & vulnerable, those that don't drive or do internet banking, those that rely on B…"

here "internet banking" needs to be highlighted with any colour. Here we need to check for lower(TweetText) contains keyword(lower(internet BanKing)). How can we highlight only the keyword, NOT the entire lines of data. Please advise.

alt text

Tags (1)
0 Karma
1 Solution

niketn
Legend

@aravindpadmin refer to one of my older answer on similar lines which highlights a selected text using SplunkJS to create Custom table renderer and using JavaScript to apply highlight color/style: https://answers.splunk.com/answers/636948/how-to-add-css-class-to-table-field-by-input-in-sp.html

You can extend the same for your use-case and highlight five different matches.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@aravindpadmin refer to one of my older answer on similar lines which highlights a selected text using SplunkJS to create Custom table renderer and using JavaScript to apply highlight color/style: https://answers.splunk.com/answers/636948/how-to-add-css-class-to-table-field-by-input-in-sp.html

You can extend the same for your use-case and highlight five different matches.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

aravindpadmin
Explorer

@niketnilay, thanks for your response. I am new to JavaScript. Would you please help me with JavaScript for my requirement. Thanks in advance.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...