-
Notifications
You must be signed in to change notification settings - Fork 0
/
logstash-tenis.conf
65 lines (63 loc) · 1.75 KB
/
logstash-tenis.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
62
63
64
65
input {
file {
path => "/data/all_players.csv"
start_position => "beginning"
}
file {
path => "/data/all_matches_p1.csv"
start_position => "beginning"
}
file {
path => "/data/all_matches_p2.csv"
start_position => "beginning"
}
file {
path => "/data/all_matches_p3.csv"
start_position => "beginning"
}
file {
path => "/data/all_matches_p4.csv"
start_position => "beginning"
}
file {
path => "/data/all_matches_p5.csv"
start_position => "beginning"
}
file {
path => "/data/all_matches_p6.csv"
start_position => "beginning"
}
file {
path => "/data/all_matches_p7.csv"
start_position => "beginning"
}
file {
path => "/data/all_tournaments_p1.csv"
start_position => "beginning"
}
}
filter {
if [path] == "/data/all_players.csv"{
csv {
separator => ","
columns => ["player_id", "country"]
}
}
else if [path] == "/data/all_tournaments_p1.csv"{
csv {
separator => ","
columns => ["year", "tournament", "start_date", "end_date", "location", "court_surface"]
}
}
else if [path] == "/data/all_matches_p1.csv" or [path] == "/data/all_matches_p2.csv" or [path] == "/data/all_matches_p3.csv" or [path] == "/data/all_matches_p4.csv" or [path] == "/data/all_matches_p5.csv" or [path] == "/data/all_matches_p6.csv" or [path] == "/data/all_matches_p7.csv" {
csv {
separator => ","
columns => ["start_date", "court_surface", "year", "player_id", "opponent_id", "tournament", "num_sets", "sets_won", "games_won", "games_against", "tiebreaks_won", "tiebreaks_total", "player_victory", "retirement", "won_first_set", "doubles"]
}
}
}
output {
elasticsearch{
hosts => ["localhost"]
}
}