forked from DataDog/integrations-extras
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync modal integration from logs-backend (DataDog#2304)
* Sync modal integration from logs-backend * Fix linting issues with facet attributes
- Loading branch information
1 parent
ef2d561
commit 0254b0e
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
id: modal | ||
backend_only: false | ||
facets: | ||
- groups: | ||
- modal | ||
name: RPC | ||
path: rpc | ||
source: log | ||
pipeline: | ||
type: pipeline | ||
name: Modal | ||
enabled: true | ||
filter: | ||
query: source:modal | ||
processors: | ||
- type: date-remapper | ||
name: Define `timestamp` as the official date of the log | ||
enabled: true | ||
sources: | ||
- timestamp | ||
- type: status-remapper | ||
name: Define `level` as the official status of the log | ||
enabled: true | ||
sources: | ||
- level | ||
- type: service-remapper | ||
name: Define `service` as the official service of the log | ||
enabled: true | ||
sources: | ||
- service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
id: "modal" | ||
tests: | ||
- | ||
sample: |- | ||
{ | ||
"hostname" : "", | ||
"rpc" : "TokenCreate", | ||
"target_attr_name" : "token_type", | ||
"level" : "success", | ||
"service" : "modal.audit-logs", | ||
"target_attr_value" : "0", | ||
"client_type" : "CLIENT_TYPE_WEB_SERVER", | ||
"timestamp" : "2023-11-24T21:39:37.805667+00:00" | ||
} | ||
result: | ||
custom: | ||
client_type: "CLIENT_TYPE_WEB_SERVER" | ||
hostname: "" | ||
level: "success" | ||
rpc: "TokenCreate" | ||
service: "modal.audit-logs" | ||
target_attr_name: "token_type" | ||
target_attr_value: "0" | ||
timestamp: "2023-11-24T21:39:37.805667+00:00" | ||
message: |- | ||
{ | ||
"hostname" : "", | ||
"rpc" : "TokenCreate", | ||
"target_attr_name" : "token_type", | ||
"level" : "success", | ||
"service" : "modal.audit-logs", | ||
"target_attr_value" : "0", | ||
"client_type" : "CLIENT_TYPE_WEB_SERVER", | ||
"timestamp" : "2023-11-24T21:39:37.805667+00:00" | ||
} | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1700861977805 | ||
|