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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...