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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...