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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...