Skip to content

Support for CIDR blocks and defined ranges in IP datatype fields #31083

Closed
@sgelastic

Description

@sgelastic

Describe the feature:
It would be helpful if we could include subnets expressed as CIDR blocks or ranges. With more and more clients ingesting network related log data, it would be especially helpful if we could include CIDR notation and ranges as viable options for better searching. Ideally, Elasticsearch would be able to then interpret that block so that searching 192.168.1.5 would find CIDR block 192.168.1.1/16 as well as 192.168.1.1-192.168.1.120.

Use case:
My clients have multiple layers of network security devices blocking and allowing specific types of traffic. It's not uncommon for a single packet to travel through 1 or more firewalls and then IPS or switch with its own security setting. Those settings typically express source and destination the rule applies to in one of the following ways:

CIDR ID: 192.168.1.1/31
Range: 192.168.1.0 - 192.168.1.1
Comma separated: 192.168.1.0, 192.168.1.1

It would be trivial to split out comma separated values using grok filters in most cases, but for larger ranges and CIDR blocks, we'd have to create potentially thousands of mostly redundant records to record the full range properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions