We have updated our Terms of Service, Code of Conduct, and Addendum.

Is there a Cribl expression that I can use to eval the size in bytes of _raw?

Tony Reinke - Cribl
Tony Reinke - Cribl Posts: 134 admin

I want to eval the size in bytes of _raw. How do I do that in Stream?

Tagged:

Best Answer

  • pie
    pie Posts: 22 ✭✭
    Answer ✓

    Sure is.

    _raw.length for _raw

    __e.asJSON().length for full event length

Answers

  • pie
    pie Posts: 22 ✭✭
    Answer ✓

    Sure is.

    _raw.length for _raw

    __e.asJSON().length for full event length

  • Jon Rust
    Jon Rust Posts: 420 mod

    If _raw is a parsed object ({} to the left of _raw in the preview window), youll need to stringify the value first.

    JSON.stringify(_raw).length