Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matching with arrays #799

Closed
drenton1 opened this issue Sep 9, 2024 · 2 comments
Closed

matching with arrays #799

drenton1 opened this issue Sep 9, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@drenton1
Copy link

drenton1 commented Sep 9, 2024

Discussed in #795

Allow using pipelines > dnsmessage > matching when the JSON includes arrays. For example, using the below pipeline and dnstap JSON we want to only include messages with rdata = 0.0.0.0

pipelines:
  - name: filter-messages
    dnsmessage:
      matching:
        include:
          dns.resource-records.an.0.rdata: "0.0.0.0"
{
  "dns": {
    "resource-records": {
      "an": [
        {
          "name": "test.example.com",
          "rdatatype": "A",
          "class": "IN",
          "ttl": 86400,
          "rdata": "0.0.0.0"
        }
      ],
      "ns": [],
      "ar": []
    }
  }
}

Thanks

@dmachard dmachard added the bug Something isn't working label Sep 9, 2024
@dmachard dmachard added this to the v1.0.0 milestone Sep 9, 2024
@dmachard
Copy link
Owner

dmachard commented Sep 9, 2024

It should be fixed in v1.0.0-beta2.

@drenton1
Copy link
Author

Works great. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants