

There are several problems with this chart: There are multiple values for the same status code on the X-axis.

The range of count values form the Y-axis. If you add a uniq/dedup after, it doesnt have any effect. Here is the visualization for the stats command results table: The status field forms the X-axis, and the host and count fields form the data series. So, when I do the lists, I get multiple not unique values in list(topics). The issue that I am having is that at the time I join the topics in, the topics show up multiple times - it will join by instance, so for every queue line it fines it adds the topic lineĮg if queues are queue1, queue2 and topics are topic1, you will get Splunk: Group by certain entry in log file. Index="ems" sourcetype="queueconfig" | multikv noheader=true | rename Column_1 as queues | join instance | stats list(queues),list(topics) by instance Splunk: Stats from multiple events and expecting one combined output. The results appear on the Statistics tab and look something. makeresults count1000 streamstats count AS rowNumber stats list (rowNumber) AS numbers. The numbers are returned in ascending order in a single, multivalue result. Stats count for multiple fields in search rockybhai. Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic for Current User. For the list of statistical functions and how they're used, see 'Statistical and charting functions' in the Search Reference. Using Splunk: Splunk Search: Stats count for multiple fields in search Options. Add the stats command with the list function to the search. The list of statistical functions lets you count the occurrence of a field and calculate sums, averages, ranges, and so on, of the field values. Index="ems" sourcetype="topicconfig" | multikv noheader=true | rename Column_1 as topics | stats list(topics) by instanceīut now I want to join them into one search like this - Notice that each result appears on a separate row.

This query returns a count but its of all the logins. I have the following search that does the same for topics So far, I have: indexwhatever sourcetypewhatever nslookup (ClientIPAddress,ipaddress) iplocation ClientIPAddress stats count (City) as countstatus by UserId where countstatus > 1. It splits the events into single lines and then I use stats to group them by instance Index="ems" sourcetype="queueconfig" | multikv noheader=true | rename Column_1 as queues | stats list(queues) by instance sourcetypeimplsplunkgen error stats count by logger user. multiple source types using the httpaction and httpmethod fields. I am trying to build up a report using multiple stats, but I am having issues with duplication. The basic structure of a stats statement is: stats functions by fields Many. Use another stats or chart command to sum the count column by the type field.
