|
We have data in the summary index that counts information by various categories. For the purposes of presenting the problem we collect information in 15-minute buckets, and each event includes HostName, HostType, and count which is the number of occurrences of the HostName, HostType combination in that bucket. So a sample event would be
HostNames can be any of a variety of Strings, and HostType can be either "foo" or "bar". I am trying to write a search that plots the percentage of "foo" in each bucket using a timechart. So far we have
As written, Splunk complains that "The specifier 'Offload' is invalid. It must be in form (). For example: max(size)." If I remove the timechart of the search above and instead pipe to |
|
It's a little strange to do the bucketing manually and then give it to timechart who'll want to bucket it again. But you could maybe replace the timechart with Or maybe you could not do the initial bucketing but leave the work to timechart. This is the way I would go:
a nice stacked area chart of that might be all you need, but you could also do this:
Great approach Nick, leaves me with a new question. When I adopt your second search style, I can use the 'fields' command to get a table with 2 columns: _time and fooPercent. However when I do "Show Report" it no longer seems to understand this is a timechart of fooPercent over _time, presumably because this was not in the original timechart command early in the search string. Can you recommend a way to get the graph of fooPercent over _time that we desire?
(26 Jan '11, 18:46)
beaumaris
|
|
I believe you should be able to do:
though if your example is too much simplified from your actual use case, there will have to be some adjustments made to make this work. |

Is your summary index created using one of the
si-commands (sistats,sitimechart,sichart) or one of the conventional ones? (stats, etc.)? It appears to be the latter, but can you confirm?The summary index is created using the conventional commands