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

Can a filter use a lookup table?

Shane Daniels
Shane Daniels Posts: 28 mod

Can a filter use a lookup table?

Best Answer

Answers

  • Shane Daniels
    Shane Daniels Posts: 28 mod
    edited July 2023 Answer ✓

    Yes.

    Cribl Expressions | Cribl Docs

    Native Cribl Stream function methods, found under C.*

    Example: C.Lookup(‘filename.csv, ‘host).match(host)

  • Jon Rust
    Jon Rust Posts: 443 mod

    Example, this will return true if the file has "value_to_lookup" in the column "key_column":

    C.Lookup('lookupfile.csv','key_column').match('value_to_lookup')