Teragrep Docs
Home Features Docs Pricing Contact Us

DPL

  • Functions
    • Introduction
    • Aggregations
      • avg(), mean()
      • count()
      • distinct_count()
      • earliest() & latest()
      • earliest_time() & latest_time()
      • estdc()
      • first()
      • last()
      • list()
      • median()
      • min(), max()
      • mode()
      • perc(), upperperc() and exactperc()
      • range()
      • stdev()
      • stdevp()
      • sum()
      • sumsq()
      • values()
      • var()
      • varp()
    • Evaluations
      • match()
      • searchmatch()
    • Transforms
      • accum
      • chart
      • convert
      • eval
      • fields
      • iplocation
      • join
      • makeresults
      • rename
      • replace
      • search
      • sendemail
      • sort
      • spath
      • stats
      • strcat
      • table
      • teragrep
      • timechart
      • top
      • where
DPL 1.0.0
  • DPL
    • 1.0.0
  • Teragrep UI
    • 1.0.0
  • DPL
  • Functions
  • Aggregations
  • mode()

mode()

Table of Contents
  • Definition
  • Examples
  • Further Reading

Definition

mode() returns the most frequent value of the table column. You can use it with transform commands that support aggregations.

Examples

The following example shows the most frequent values of operation column and groups values by the user column.

%dpl
index=join_json_one earliest=-3y
| spath
| chart mode(operation) by user

example of mode aggregation

Further Reading

  • chart

  • stats

  • timechart

  • Graphs

min(), max() perc(), upperperc() and exactperc()

Teragrep

© 2024 Teragrep

Learn More

  • Pricing
  • Features
  • Docs

About Us

  • Contact Us
  • About Teragrep
  • Privacy Policy

Produced by Antora and Asciidoctor.

The UI of Teragrep documentation is based on the default Antora UI which is licensed under the MPL-2.0 license.