--- id: stddev title: stddev Grouping Operator sidebar_label: stddev slug: /help/docs/search/search-query-language/group-aggregate-operators/stddev/ canonical: https://www.sumologic.com/help/docs/search/search-query-language/group-aggregate-operators/stddev/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; Finds the standard deviation value for a distribution of numerical values within the time range analyzed and associated with a group designated by the "group by" field. ## Syntax `stddev() [as ] [by ]` ## Rules * Creates field named **`_stddev`** ## Example You can use the query below to view the standard deviation of time delay, along with the average of time delay, max delay, and the min delay for a Source. You can use this query to troubleshoot large message time, receipt time, and searchable time discrepancies. ```sumo _source=CollectD | abs(_receipttime - _messagetime) as delt | delt/1000/60 as delt | min(delt), max(delt), avg(delt), stddev(delt), count(*) by _collector, _sourceName ``` Avg results When you calculate the standard deviation of more than one field, you must create an alias using the [`as` operator](/docs/search/search-query-language/search-operators/as) to rename the `stddev` fields. See this example: ```sumo _sourceCategory="OS/Windows" | kv "HandleCount", "ThreadCount" | stddev(HandleCount) as stddevHandleCount, stddev(ThreadCount) as stddevThreadCount ```