All Apps and Add-ons

Gsuite for Splunk logs error

praneshjan
Explorer

I tried configuring the GsuiteforSplunk App. Configuration, authorization part and the google apps input all have been configured and saved. But I have issues receiving the logs in Splunk App. All I receive is the error logs. Can someone help me out here. If there is any documentation on the configuration, it would be additional help.

Thanks in advance.

0 Karma

jkat54
SplunkTrust
SplunkTrust

All the instructions are found on splunkbase:

https://splunkbase.splunk.com/app/2714/#/details

0 Karma

praneshjan
Explorer

I also get the error message while token authentication

[Errno 22] invalid mode ('a+b') or filename: u'C:\Program Files\Splunk\etc\apps\GoogleAppsForSplunk\local/GoogleApps.https://accounts.google.com/o/oauth2/auth.cred'

0 Karma

praneshjan
Explorer

After changing few configurations, this is a new error that I am getting now.

{"timestamp": "Thu, 26 Jul 2018 12:13:22 +0000", "log_level": "ERROR", "errors": [{"exception_arguments": "error=http_error message='<HttpError 400 when requesting https://www.googleapis.com/admin/reports/v1/usage/dates/2018-07-24?alt=json returned \"Data for dates later than 2018-07-21 is not yet available. Please check back later\">'", "line": 268, "exception_type": "unicode", "filename": "GoogleAppsForSplunkModularInput.py", "msg": "error=http_error message='<HttpError 400 when requesting https://www.googleapis.com/admin/reports/v1/usage/dates/2018-07-24?alt=json returned \"Data for dates later than 2018-07-21 is not yet available. Please check back later\">'", "input_name": "ga://splunktest1"}], "modular_input_consumption_time": "Thu, 26 Jul 2018 12:13:22 +0000"}

Hoping to find an answer to this.

0 Karma

vik_splunk
Communicator

What was changed? to get to this state? We are encountering the exact same issue.

1)I've setup and configured IA-GSuiteForSplunk ( on a standalone Splunk instance)

2)Added parameters from the UI that results in the below stanza in inputs.com (our domain name does contain a "-".

[ga://GCI_TestData_abccba]
disabled = false
domain = abc-cba.com
extraconfig = {}
index = main
interval = 25 7 * * *
proxy_name = GCI_Proxy
servicename = report:all

Error seen in logs

{"timestamp": "Fri, 22 Mar 2019 11:25:00 +0000", "errors": [{"exception_type": "TypeError", "exception_arguments": "expected string or buffer", "input_name": "ga://GCI_TestData_abccba", "msg": "expected string or buffer", "line": 103, "filename": "ga.py"}], "log_level": "ERROR", "modular_input_consumption_time": "Fri, 22 Mar 2019 11:25:00 +0000"}

Any inputs would help. Thanks!

0 Karma

vik_splunk
Communicator

The cron is complete but it does not seem to appear in this output

0 Karma

jkat54
SplunkTrust
SplunkTrust

Wait, is there a file on that path? ... auth.cred?

0 Karma

praneshjan
Explorer

no there is no such file

0 Karma

jkat54
SplunkTrust
SplunkTrust

You’re failing to authenticate and that’s causing the other error.

0 Karma

praneshjan
Explorer

I receive the below error log. Can you explain what this error about and where the problem is?

{"timestamp": "Wed, 25 Jul 2018 08:21:11 +0000", "errors": [{"msg": "expected string or buffer", "line": 101, "filename": "ga.py", "exception_type": "TypeError", "exception_arguments": "expected string or buffer", "input_name": "ga://splunk"}], "log_level": "ERROR", "modular_input_consumption_time": "Wed, 25 Jul 2018 08:21:11 +0000"}

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...