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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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