{
"global_overrides": {
"debug": false
},
"inputs": {
"dynatrace": {
"id": "<short_unique_input_id>",
"enabled": true,
"credentials": {
"token": "<token_value>"
},
"environment": "<environment_value>",
"services": {
"audit_logs": {
"your_environment_id": "<your_environment_id_value>",
"start_time": "<start_time_value>",
"request_period_in_seconds": 60
}
}
}
},
"behavior": {
"custom": {
"collector_globals": {
},
"inputs": {
"dynatrace": {
"authenticator": {
"type": "header_token",
"token_type": "Api-Token",
"token_field": "Authorization"
},
"services": {
"audit_logs": {
"requester": {
"url": "https://{your_environment_id}.live.dynatrace.com/api/v2/auditlogs",
"headers": {
"Content-Type": "application/json"
}
},
"paginator": {
"type": "cursor",
"config": {
"request_page_size_field": "pageSize",
"request_page_size": 1000,
"request_location": "params",
"response_location": "body",
"request_page_field": "nextPageKey",
"response_page_field": "nextPageKey"
}
},
"retriever": {
"type": "time_based",
"config": {
"request_from_field": "from",
"request_to_field": "to",
"request_sort_field": "sort",
"request_sort_value": "timestamp",
"response_timestamp_field": "timestamp",
"response_unique_id_field": "logId",
"response_sort_order": "descending",
"response_max_data_size": 10000000,
"time_window_interval_in_seconds": 3600,
"timestamp_format": "millis",
"result_path": "$.auditLogs.[*]"
}
},
"processor": {
"type": "time_based",
"config": {
"response_timestamp_field": "timestamp",
"response_sort_order": "descending",
"response_unique_id_field": "logId",
"tag": "monitor.dynatrace.api.audit_log"
}
}
}
}
}
}
}
}
} |