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
      • abs()
      • atan()
      • ceiling()
      • cidrmatch()
      • coalesce()
      • cosh()
      • exp()
      • false()
      • floor()
      • hypot()
      • if()
      • isbool()
      • isnotnull()
      • isnull()
      • ln()
      • log()
      • lower()
      • ltrim()
      • match()
      • pi()
      • random()
      • round()
      • rtrim()
      • searchmatch()
      • sha1()
      • sqrt()
      • tan()
      • tanh()
      • trim()
    • Transforms
      • accum
      • addtotals
      • chart
      • convert
      • dedup
      • eval
      • eventstats
      • fields
      • fillnull
      • iplocation
      • join
      • makeresults
      • rangemap
      • regex
      • rename
      • replace
      • rex
      • rex4j
      • search
      • sendemail
      • sort
      • spath
      • stats
      • strcat
      • table
      • teragrep
      • timechart
      • top
      • where
      • xmlkv
DPL 1.0.0
  • DPL
    • 1.0.0
  • Teragrep UI
    • 1.0.0
  • DPL
  • Functions
  • Evaluations
  • trim()

trim()

Table of Contents
  • Definition
  • Examples
  • Further Reading

Definition

trim() trims given characters from the string.

Examples

The following example removes 'Z' letters from the both sides of the string value.

| makeresults
| eval n=trim("ZZZabcdZZZ", "Z")
Screenshot of the previous example’s result

Further Reading

  • ltrim()

  • rtrim()

  • makeresults

  • eval

tanh() Transforms

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.