Splunk Search

Is it possible to create an html unorder (bullet) list for each row of a table output?

timgren
Path Finder

Id like to create table of results, and convert each row into an unordered bullet list using html. 

Such as: 

| table result   (which has n number of results) 
Then in the output, i want to show each in an unordered bullet list.

<html>
<ul>
    <li> row.result.1
    <li> row.result.2
    <li> row.result.3
etc... 
</ul>
</html> 

Possible? 


Labels (1)
Tags (2)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @timgren 

Something like this?

| eval row="<li>".result."</li>"
| stats values(row) as html_list 
| eval html_list = "<ul>".mvjoin(html_list, "")."</ul>" 
| table html_list

livehybrid_0-1746547974884.png

Full example

| makeresults count=3 
| streamstats count
| eval result = "result".count 
| table result
| eval row="<li>".result."</li>"
| stats values(row) as html_list 
| eval html_list = "<ul>".mvjoin(html_list, "")."</ul>" 
| table html_list

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

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!

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 ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...