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.
@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.
@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.
@niketnilay, thanks for your response. I am new to JavaScript. Would you please help me with JavaScript for my requirement. Thanks in advance.