Splunk Search

Problems with search on chart

kailun92
Communicator

I saw this command and tried to imitate it
sourcetype="wind" | eval intscale="SCALE"+tostring(floor(scale/10)*10) | chart count over month by intscale | sort by month
alt text

What is wrong with my command ? Anybody can guide me ? I would like to show temperature(Y-axis) on monthly (X-axis).

sourcetype="CurrentWeatherSG" | chart count over hour by mean(current_temperature)

I only tried this sourcetype="CurrentWeatherSG" | chart max(current_temperature) as Max, min(current_temperature) as Min over _time but the _time is all ... ... ... I wanted to show the numbers on X-axis.

1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Charting over time usually calls for a timechart, something like this:

... | timechart span=1mon max(current_temperature) as Max, min(current_temperature) as Min

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Charting over time usually calls for a timechart, something like this:

... | timechart span=1mon max(current_temperature) as Max, min(current_temperature) as Min
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...