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

Ys dynatrace event collector #38369

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Empty file added Packs/Dynatrace/.pack-ignore
Empty file.
Empty file added Packs/Dynatrace/.secrets-ignore
Empty file.
359 changes: 359 additions & 0 deletions Packs/Dynatrace/Integrations/Dynatrace/Dynatrace.py

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions Packs/Dynatrace/Integrations/Dynatrace/Dynatrace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
commonfields:
id: Dynatrace
version: -1
sectionOrder:
- Connect
- Collect
name: Dynatrace
display: Dynatrace
category: Cloud Services
description: 'Dynatrace is a revolutionary platform that delivers analytics and automation for unified observability and security.'
configuration:
- display: Server URL
name: url
required: true
type: 0
section: Connect
- display: Access Token
YaelShamai marked this conversation as resolved.
Show resolved Hide resolved
name: token
required: true
type: 4
section: Connect
- display: Event types to fetch
name: events_to_fetch
type: 16
defaultvalue: Audit logs,APM
required: true
section: Collect
advanced: true
options:
- Audit logs
- APM
- display: The maximum number of audit logs events per fetch
section: Collect
advanced: true
defaultvalue: "25000"
type: 0
name: audit_limit
- display: The maximum number of APM events per fetch
section: Collect
advanced: true
defaultvalue: "7000"
type: 0
name: apm_limit
- display: Trust any certificate (not secure)
name: insecure
required: false
type: 8
section: Connect
- display: Use system proxy settings
name: proxy
required: false
type: 8
section: Connect
script:
script: ""
type: python
commands:
- arguments:
- name: events_types_to_get
description: comma separated list of events types to get.
auto: PREDEFINED
predefined:
- Audit logs
- APM
required: true
- name: audit_from
description: The start date for searching audit_logs events. The date can be provided in three formats- Timestamp in UTC milliseconds, Human-readable format in the following format- 2021-01-25T05:57:01.123+01:00 or relative timeframe using the format now-NU/A. For more information, please refer to https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/events-v2/get-events for more information.
- name: apm_from
description: The start date for searching apm events. The date can be provided in three formats- Timestamp in UTC milliseconds, Human-readable format in the following format- 2021-01-25T05:57:01.123+01:00 or relative timeframe using the format now-NU/A. For more information, please refer to https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/audit-logs/get-log for more information.
- name: audit_limit
required: false
description: Number of audit_logs events to fetch.
defaultValue: "1"
- name: apm_limit
required: false
description: Number of apm events to fetch.
defaultValue: "1"
- auto: PREDEFINED
defaultValue: "False"
description: Set this argument to True in order to create events, otherwise the command will only display them.
name: should_push_events
predefined:
- "True"
- "False"
required: false
description: Manual command to fetch events and display them. This command is used for developing/debugging and is to be used with caution, as it can create events, leading to events duplication and exceeding the API request limitation.
name: dynatrace-get-events
isfetchevents: true
subtype: python3
dockerimage: demisto/python3:3.9.8.24399
marketplaces:
- marketplacev2
fromversion: 6.9.0
tests:
- No tests
27 changes: 27 additions & 0 deletions Packs/Dynatrace/Integrations/Dynatrace/Dynatrace_description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Dynatrace Help

### How to Create a Personal Access Token (Classic Access Token):
Generate an access token:
1. In Dynatrace, go to Access Tokens -> `Generate new token`.
2. Enter a name for your token.
Note that Dynatrace doesn't enforce unique token names. You can create multiple tokens with the same name. Be sure to provide a meaningful name for each token you generate. Proper naming helps you to efficiently manage your tokens and perhaps delete them when they're no longer needed.
3. Select the required scopes for the token.
4. Click on `Generate token`.
5. Copy the generated token to the Collector's instance. Make sure to store the token in a password manager for future use, as you will not be able to access it later.

### Required scopes:
For each event type to fetch the according scope needs to be added to the token:

Audit logs events- auditLogs.read scope.

APM events- events.read scope.

### Server URL
Make sure to include the correct url:

For SaaS: https://{your-environment-id}.live.dynatrace.com

For ActiveGate Cluster:
YaelShamai marked this conversation as resolved.
Show resolved Hide resolved
https://{your-activegate-domain}:9999/e/{your-environment-id}


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading