dmachard / go-dnscollector

Ingesting, pipelining, and enhancing your DNS logs with usage indicators, security analysis, and additional metadata.
MIT License
205 stars 45 forks source link

Possibility to query and external service via Web API #728

Open dtouzeau opened 4 months ago

dtouzeau commented 4 months ago

Hi, it could be cool to query API in order to be more flexible. Possibility of adding a field by API return. Enable real-time API REST querying of an external service and adding the response to the event provided by a json result with possibility to define a cache by the sent token

Example

transforms:
   api:
      url: "https://apiserver:8080/category/%s"
      header: "X-API-KEY: 123456"
      modifier: qname
      result: "id"
      field: "category-id"
      cache: 30s

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.