lookup operator with compareCIDRPrefix



  • Avatar

    Hello Bowei,

    The join column expression for the lookup operator needs to refer to actual field names in field1=field2 format, it cannot calculate the join condition result from a function.

    It seems that for what you are trying to achieve a better solution would be to ingest the IP data into Sumo and then use the compareCIDRPrefix function. Besides the syntax requirements, the lookup operator would fail your query if it is not able to fetch the data within 10 seconds.

    I hope this helps.

    Best regards,

    Piotr Woch

    Customer Success Engineer

    Comment actions Permalink
  • Avatar
    Bowei Chi

    Thanks for the reply Piotr.

    Is there a work around for this use case where I have cidr information in CSV in the format of 

    route, mask_length,29,24

    represent cidr and

    I need to check if a IP from a log is within any of the cidr ranges from CSV.


    Comment actions Permalink

Please sign in to leave a comment.