Splunk Search

Comma delimited and align left for single value...?

bjbrookz
Explorer

Dozens of posts on these topics.. I've tried makemv, fieldformat, tostring, tonumber all to no avail. So I'm just going to past my query in hopes someone can help me out. I have placed them after the stats call but having no luck. 

query

| stats list(Plugin) by Host, OS, App, Manager
| rename list(Plugin) as "Plugin ID"

The result is either one or several numbers in a single field - Plugin ID. I would prefer to delimit those results by comma (and align left for the single value results if possible). 

Instead of (the lines are supposed to represent the cell/field):

______________

204188

193574_______
______193574__

 

I would like them on a single line, wrapping where necessary:
204188, 193574 

193574_______

 

Any assistance would be appreciated. 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eval "Plugin ID"=mvjoin('Plugin ID',", ")." "

View solution in original post

bjbrookz
Explorer

I apologize. It does in fact work in a standard search window. However, the panel in the dashboard studio does not. Thanks for your time. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval "Plugin ID"=mvjoin('Plugin ID',", ")." "

bjbrookz
Explorer

Thanks, but no dice. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

OK Please share some representative sample events (anonymised as necessary) demonstrating how this solution fails.

0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...