-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathingest-pipeline.json
More file actions
71 lines (71 loc) · 3.44 KB
/
ingest-pipeline.json
File metadata and controls
71 lines (71 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#######################################################################################################
### ###
### Processors - ###
### 1) Dissect - parse the @message field and extract values for lambda function execution such ###
### as execution duration and memory used. Some executions includes initialization ###
### duration. First pattern is used to extract such esecutions where initialization ###
### duration is included and if it is not included then second pattern (on failure) ###
### is used ###
### ###
### 2) Remove - remove @message field after extracting required data ###
### ###
### 3) Rename - change name of the field after extraction ###
### ###
### 4) convert - change data type of certain fields ###
### ###
#######################################################################################################
{
"description": "cwl-pipeline",
"processors": [
{
"dissect": {
"field": "@message",
"pattern": """%{?v1} %{*request-id}: %{&request-id} %{*duration}: %{&duration} %{?v2} %{?v3} %{?v4}: %{BilledDuration} %{?v5} %{?v6} %{*memory-size}: %{&memory-size} %{?v7} %{?v8} %{?v9} %{*max-memory-used}: %{&max-memory-used} %{?v10} %{?v11} %{?v12}: %{init-duration} %{?v13}""",
"tag": "main",
"on_failure": [
{
"dissect": {
"field": "@message",
"pattern": """%{?v1} %{*request-id}: %{&request-id} %{*duration}: %{&duration} %{?v2} %{?v3} %{?v4}: %{BilledDuration} %{?v5} %{?v6} %{*memory-size}: %{&memory-size} %{?v7} %{?v8} %{?v9} %{*max-memory-used}: %{&max-memory-used} %{?v10}""",
"tag": "failure"
}
}
]
}
},
{
"remove": {
"field": "@message",
"tag": "remove"
}
},
{
"rename": {
"field": "Size",
"target_field": "Memory",
"tag": "rename-memory"
}
},
{
"rename": {
"field": "Used",
"target_field": "MaxMemoryUsed",
"tag": "rename-max-memory"
}
},
{
"rename": {
"field": "init-duration",
"target_field": "InitDuration",
"ignore_missing": true,
"tag": "rename-init"
}
},
{
"convert": {
"field": "MaxMemoryUsed",
"type": "integer"
}
}
]
}