logstash-input-google-analytics-daily 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f77de4fea72f6c2172717186fcc823959b2e55dd42a99a990cc95c05f69c806
|
4
|
+
data.tar.gz: 15aa34e39adee6b5ee7a3ca37cbcc94f923f30d4b4bd11eb2c62743df7298c94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a578250682fe2c5b75c74bf3b2d85197e911eefe4dd00c59d53fc59df64c67b035e56e9a6da85fd6bf34b9ad66ba7fc041b6a2624f6c9f3338370429367ddef
|
7
|
+
data.tar.gz: 1dbbc2951b6e54912f93ca3ae640c66657e9c1819fb9f9eb1c980934cac0dde18d4d783f40c1d6f92739779f7c56fc66eb54c529b8bb70d32491e60a895ff590
|
@@ -120,6 +120,10 @@ class LogStash::Inputs::GoogleAnalyticsDaily < LogStash::Inputs::Base
|
|
120
120
|
# Populate Logstash event fields
|
121
121
|
event.set('ga.contains_sampled_data', results.contains_sampled_data?)
|
122
122
|
event.set('ga.query', query) if @store_query
|
123
|
+
# We need to convert the date fields here to string because sometimes it's a relative date
|
124
|
+
event.set('ga.query.start_date', query["start_date"].to_s) if @store_query
|
125
|
+
event.set('ga.query.end_date', query["end_date"].to_s) if @store_query
|
126
|
+
|
123
127
|
event.set('ga.profile_info', profile_info) if @store_profile
|
124
128
|
|
125
129
|
if date == 'today'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-google-analytics-daily'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.5'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Logstash plugin to pull daily reports from Google Analytics."
|
6
6
|
s.description = "Logstash plugin to pull daily reports from the Google Analytics v3 Core Reporting API. Install into Logstash using $LS_HOME/bin/logstash-plugin install logstash-input-google-analytics-daily."
|