forked from HakumenNC/docker-schemacrawler-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogstash-columns.conf
61 lines (57 loc) · 1.6 KB
/
logstash-columns.conf
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
input {
file {
path => ["/usr/share/logstash/inputs/schemacrawler-columns-*.csv"]
start_position => "beginning"
}
}
filter {
csv {
skip_header => "true"
separator => ","
columns => [
"sclint-dbenv",
"sclint-dbid",
"sclint-catalogName",
"sclint-runid",
"sclint-schema-name",
"sclint-table-name",
"sclint-table-fullname",
"sclint-table-remarks",
"sclint-table-type",
"sclint-column-short-name",
"sclint-column-name",
"sclint-column-fullname",
"sclint-column-ordinal-position",
"sclint-column-remarks",
"sclint-column-default-value",
"sclint-column-size",
"sclint-column-type-typename",
"sclint-column-type-fullname",
"sclint-column-type-name",
"sclint-column-type-java-sqltype-group"
]
}
ruby {
code => 'find = "false"
if !event.get("sclint-column-remarks").nil?
if event.get("sclint-column-remarks").include? "RGPD"
find = "true"
end
end
event.set("sclint-isRGPDColumn", find)'
}
mutate {
convert => {
"sclint-column-ordinal-position" => "integer"
"sclint-column-size" => "integer"
"sclint-isRGPDColumn" => "boolean"
}
}
}
output {
elasticsearch {
hosts => "http://elasticsearch:9200"
index => "schemacrawler-column-stats"
}
stdout {}
}