Are there any known issues or gotchas with this? I tried to use this and could not get it to work. Cron Schedule was
0 4 * * * so I expected it to run at 4 in the morning, which it did not.
So I also checked with
* * * * * and the more complex
*/3 * * * * to be safe, none of them created any events. When I run the input on a simple interval it does work though.
I set the rest.py script to logging.DEBUG, but do not get any usefol logmessages. Only information about the configuration is being logged. Also tried setting the ExecProcessor to Debug did not help either.
Any tips on what I might try to get this working?
[rest://GA] auth_type = oauth2 endpoint = https://www.googleapis.com/analytics/v3/data/ga?ids=ga%#########&start- date=30daysAgo&end-date=yesterday&metrics=ga%3Asessions&dimensions=ga%3Abrowser host = GoogleAnalytics_BrowserStats http_method = GET index = main index_error_response_codes = 1 oauth2_access_token = XXXXXX oauth2_client_id = XXXXXX oauth2_client_secret = XXXXXX oauth2_refresh_token = XXXXXXX polling_interval = * * * * * response_type = json sourcetype = json_no_timestamp sequential_mode = 1 streaming_request = 0 oauth2_refresh_url = https://accounts.google.com/o/oauth2/token sequential_stagger_time = 30
As mentioned this works when using an interval like 60 seconds but stops doing anything when set to cron. I experimented with different settings for Cron, sequential requests set to true or false and different Stagger Time values. All to no avail.