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: 76576ef3a82cdc1c35fe481c9964742bf012db2f2a3c41f72f63d2d734a7428a
4
- data.tar.gz: f638578fc5488b3a48d457983e20a09208dc8d80255ed7fa685e0a0fa0cf895a
3
+ metadata.gz: 1f77de4fea72f6c2172717186fcc823959b2e55dd42a99a990cc95c05f69c806
4
+ data.tar.gz: 15aa34e39adee6b5ee7a3ca37cbcc94f923f30d4b4bd11eb2c62743df7298c94
5
5
  SHA512:
6
- metadata.gz: ae59b897a5a53798c8890f772213716387f2f1b7e5078dc9ec472fa4d43e53c9c0114b1caf381b64282a01b51daf5d9bbb0bd57dbe7126cc30a712693575e107
7
- data.tar.gz: a7c659bb9995ad8fa669c02df0c8b4df2835acc95360bd558441330c5dc4383a9aabc4c3d6c1f0b684913b3125f9f77977495128bd4a6c46254331e868d8a40b
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.4'
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."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-google-analytics-daily
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shalvah