Dashboards & Visualizations

Charts not populating after post processing is done.

theouhuios
Motivator

Hello

I am completely new to the post processing concept hence having few issues with coding it in xml

`<?xml version='1.0' encoding='utf-8'?>


<![CDATA[index="main" sourcetype="incident" |dedup record.incidentId| stats count by record.assignmentGroup,record.priority ]]> `



Last 24 hours






Count by Priority - 1
<![CDATA[where record.priority="1" ]]>
bar
gaps
default
false
right

 </chart>




Count by Priority - 2
<![CDATA[where record.priority="2" ]]>
bar
gaps
default
false
right

 </chart>
 <chart>
   <title>Count by priority -3</title>
   <searchPostProcess> <![CDATA[where record.priority="3"  ]]> </searchPostProcess> 
   <option name="charting.chart">column</option> 
   <option name="charting.chart.nullValueMode">gaps</option>
   <option name="charting.chart.stackMode">stacked</option> 
   <option name="charting.layout.splitSeries">false</option> 
   <option name="charting.legend.placement">right</option> 
   <option name="count">10</option>
   <option name="displayRowNumbers">true</option> 

 </chart> 


I don't know why but the data isn't getting populated in the charts. Can anyone please explain where I am doing a mistake. Any help would be great.

Thanks

Tags (1)
0 Karma

theouhuios
Motivator

Made changes and pasted the code again. Now in the postprocess it only has the where field. Am I missing something here?

0 Karma

dart
Splunk Employee
Splunk Employee

change the post processes to just the where clause and remove the field, eg. |where record.priority=3 | fields - record.priority.
You don't have _time anymore, so you can't bucket by it. You'd need to bucket by time in the original search template.

theouhuios
Motivator

Thanks for that. But it still doesn't populate the charts below. Am I doing anything wrong in the searchTemplate ?

0 Karma

theouhuios
Motivator

Thanks for that. But it still doesn't populate the charts below. Am I doing anything wrong in the searchTemplate ?

0 Karma

dart
Splunk Employee
Splunk Employee

The properties are searchPostProcess and searchTemplate not searchpostprocess or searchtemplate. Does that sort it out?

0 Karma

theouhuios
Motivator

Any help please?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...