All Apps and Add-ons

Wordcloud Custom Viz - Support Phrases?

wryanthomas
Contributor

Can Wordcloud be configured to support phrases instead of discrete words? Our use case is calling for that (highlight popular search terms of a site).

0 Karma

Sukisen1981
Champion

Hi @wryanthomas - a phrase is open to interpretation, does it consists of 5 words or up to 10 words : )?
But I think i understand what you want. One alternative is to use the cluster command and cluster your phrases into groups and then use the output viz wordcloud.
Let us say the phrases that you want to categorize are identified by a field called 'Title'. You can then use something like this:
| cluster field=Title t=0.5 labelonly=true showcount=true match=termset
| table Title,cluster_count
| dedup Title

Here we cluster the title into groups of events, the parameters t and match are significant, basically they are used to match the sensitivity (match similarity) and the algo. used to match. You will have to customize both, here is the ref. doc - https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Cluster
Your output might not be exact and you will need to play around with the cluster command parameters, but provided you have a some reasonable accuracy level, you can then cluster the phrases using wordcloud.
Give it a try

0 Karma

Sukisen1981
Champion

hi @wryanthomas - did you get a chance to try the above suggestion out?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...