Filebeat Threat Intel module, multiple Anomali filesets

How can multiple Anomali filsets be enabled?

For example, if I want to enable both collections 135 and 136 as per below, seems that the last read wins and only collection 136 will be configured.

Is this possible? Can't find anything in the documentation.

        anomali:
          enabled: true
          var.input: httpjson
          var.url: https://limo.anomali.com/api/v1/taxii2/feeds/collections/135/objects?match[type]=indicator
          var.username: guest
          var.password: guest
          var.interval: 60m
        anomali:
          enabled: true
          var.input: httpjson
          var.url: https://limo.anomali.com/api/v1/taxii2/feeds/collections/136/objects?match[type]=indicator
          var.username: guest
          var.password: guest
          var.interval: 60m

You'll need multiple Threatintel modules such as below. You can put this in the threatintel.yml file I also recommend adding the other filesets to disable them.

- module: threatintel
  anomali:
          enabled: true
          var.input: httpjson
          var.url: https://limo.anomali.com/api/v1/taxii2/feeds/collections/135/objects?match[type]=indicator
          var.username: guest
          var.password: guest
          var.interval: 60m
- module: threatintel
  anomali:
          enabled: true
          var.input: httpjson
          var.url: https://limo.anomali.com/api/v1/taxii2/feeds/collections/136/objects?match[type]=indicator
          var.username: guest
          var.password: guest
          var.interval: 60m

Interesting. Will try this, though I believe I already had, and observed the same behaivour.

I did find some documention of a sort, in the blog post:

Multiple threatintel modules are not specified in that.

U definitely need the multiple modules as having a dictionary with duplicate keys will just overwrite first with the second.

Thats exactly what looks like is happening. Unfortunately it seems to happen with multiple threatintel modules as well. Given the below configs, I only ever see collection 136 in the logs.

      - module: threatintel
        anomali:
          enabled: true
          var.input: httpjson
          var.url: https://limo.anomali.com/api/v1/taxii2/feeds/collections/135/objects
          var.username: guest
          var.password: guest
          var.interval: 60m
      - module: threatintel
        anomali:
          enabled: true
          var.input: httpjson
          var.url: https://limo.anomali.com/api/v1/taxii2/feeds/collections/136/objects
          var.username: guest
          var.password: guest
          var.interval: 60m

Where are u defining this config? In the filebeat.yml or the the threatintel.yml? There was a bug that was just fixed when defining duplicate modules in the filebeat.yml that caused what you're seeing. Try in the threatintel.yml

Thanks! That sounds like it will be the issue. This is a deployment into kubernetes and the helm chart defines the configs in filebeat.yml.

Got a link to the bug issue handy?

[Filebeat] Fix multiple modules in filebeat.yml by legoguy1000 · Pull Request #29952 · elastic/beats · GitHub is the PR that fixed it. I think it will be in 8.1

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.