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
Get Updates on the Splunk Community!

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 3)

Welcome back to Splunk Classroom Chronicles, our ongoing blog series that pulls back the curtain on Splunk ...

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Almost Too Eventful Assurance: Part 1

Modern IT and Network teams still struggle with too many alerts and isolating issues before they are notified. ...