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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...