Skip to content

Commit

Permalink
[Filebeat][ATP Module]Setting user agent field required by the API (e…
Browse files Browse the repository at this point in the history
…lastic#20440)

Setting user-agent field required by ATP API for monitoring purposes
  • Loading branch information
P1llus committed Aug 5, 2020
1 parent fc0e192 commit 6a9a20e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ url: {{ .url }}
oauth2: {{ .oauth2 | tojson }}
oauth2.provider: azure
oauth2.azure.resource: https://api.securitycenter.windows.com/

http_headers: {{ .http_headers | tojson }}
date_cursor.field: lastUpdateTime
date_cursor.url_field: '$filter'
date_cursor.value_template: {{ .date_cursor.value_template }}
Expand Down
7 changes: 5 additions & 2 deletions x-pack/filebeat/module/microsoft/defender_atp/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ var:
- name: interval
default: 5m
- name: date_cursor
default:
default:
value_template: "lastUpdateTime gt {{.}}"
- name: tags
default: [defender-atp, forwarded]
- name: http_headers
default:
User-Agent: MdatpPartner-Elastic-Filebeat/1.0.0
- name: url
default: "https://api.securitycenter.windows.com/api/alerts?$expand=evidence"
- name: oauth2


ingest_pipeline: ingest/pipeline.yml
input: config/atp.yml
Expand Down

0 comments on commit 6a9a20e

Please sign in to comment.