Splunk Search

Column Width

kanda18
Explorer

Is there a way to set the column width, via the Query?
I have a variable called $list$ and it has like 100 items separated by space. I want to make sure, I either make the column width very small like 5 chars wide, so that the list gets wrapped down..

I have gone through the list, and I get a general impression that we can tweak the css , conf etc in the server to get the table look like how we want.. Unfortunately I don't have access to the servers.

I would have liked to have some sort of table formatting attributes to the table. something like table colwidth=5 or some such thing. I hope Spunk extends the table functionality in the future versions…

ANy work arounds?

Tags (1)

martin_mueller
SplunkTrust
SplunkTrust

As a very basic, but query-only workaround you could expand your results by that list, yielding one result for every item - giving you one table row per item, neatly wrapped all the way to the bottom.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Take a look at this example:

| stats c | eval f = "Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

Imagine you'd like to wrap f on spaces. Append this to expand f:

 | makemv delim=" " f | mvexpand f
0 Karma

kanda18
Explorer

did you mean, some way of creating table within the cell ? can you explain

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...