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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...