forked from elastic/beats
/
pipeline-json.json
executable file
·112 lines (112 loc) · 2.96 KB
/
pipeline-json.json
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"description": "Pipeline for parsing the Elasticsearch deprecation log file in JSON format.",
"on_failure": [
{
"set": {
"field": "error.message",
"value": "{{ _ingest.on_failure_message }}"
}
}
],
"processors": [
{
"json": {
"field": "message",
"target_field": "elasticsearch.deprecation"
}
},
{
"drop": {
"if": "ctx.elasticsearch.deprecation.type != 'deprecation'"
}
},
{
"remove": {
"field": "elasticsearch.deprecation.type"
}
},
{
"rename": {
"field": "elasticsearch.deprecation.level",
"target_field": "log.level"
}
},
{
"rename": {
"field": "elasticsearch.deprecation.component",
"target_field": "elasticsearch.component"
}
},
{
"dot_expander": {
"field": "cluster.name",
"path": "elasticsearch.deprecation"
}
},
{
"rename": {
"field": "elasticsearch.deprecation.cluster.name",
"target_field": "elasticsearch.cluster.name"
}
},
{
"dot_expander": {
"field": "node.name",
"path": "elasticsearch.deprecation"
}
},
{
"rename": {
"field": "elasticsearch.deprecation.node.name",
"target_field": "elasticsearch.node.name"
}
},
{
"dot_expander": {
"field": "cluster.uuid",
"path": "elasticsearch.deprecation"
}
},
{
"rename": {
"field": "elasticsearch.deprecation.cluster.uuid",
"target_field": "elasticsearch.cluster.uuid",
"ignore_missing": true
}
},
{
"dot_expander": {
"field": "node.id",
"path": "elasticsearch.deprecation"
}
},
{
"rename": {
"field": "elasticsearch.deprecation.node.id",
"target_field": "elasticsearch.node.id",
"ignore_missing": true
}
},
{
"remove": {
"field": "message"
}
},
{
"rename": {
"field": "elasticsearch.deprecation.message",
"target_field": "message"
}
},
{
"date": {
"field": "elasticsearch.deprecation.timestamp",
"target_field": "@timestamp",
"formats": [
"ISO8601"
],
"ignore_failure": true
}
}
]
}