-
Notifications
You must be signed in to change notification settings - Fork 1
/
underarmour.conf
42 lines (42 loc) · 1.01 KB
/
underarmour.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
input {
http_poller {
urls => {
"localhost" => "https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCsjmH-FH4KbZMR3_AT8egWQ&maxResults=50&order=date&fields=items(id,snippet(title,description,channelId,channelTitle,publishedAt,liveBroadcastContent))&key=AIzaSyDRU6vwN5ZhZWaZAVFRBO9JzWSc2C83UyU"
}
type => "underarmour"
request_timeout => 60
interval => 86400
}
}
filter {
if [type] == "underarmour" {
split {
field => "items"
}
uuid {
target => "@uuid"
overwrite => true
}
fingerprint {
source => ["items"]
target => "fingerprint"
key => "78787878"
method => "SHA1"
concatenate_sources => true
}
#mutate {
#add_tag => ["Under Armour Channel"]
#}
}
}
output {
if [type] == "underarmour" {
elasticsearch {
hosts => [ "localhost:9200" ]
user => "elastic"
password => "ChangemE456"
document_id => "%{fingerprint}"
index => "underarmour-%{+YYYY.MM.dd}"
}
}
}