All Apps and Add-ons

Google Cloud Platform Unable to Pull Data

rja93
New Member

Hi all,

I am trying to pull data from Google cloud to Splunk. After configuring google cloud credential and cloud monitoring input I am seeing the below error in logs and can't see any google cloud platform data in Splunk. Please check the below error and suggest what can be done to fix the issue.
I am running Splunk 7.3.1 on my PC and running an enterprise version.

My compute engine instance on GCP has full access to all Cloud APIs.

Any help is greatly appreciated!

2019-10-21 13:48:45,430 level=ERROR pid=66165 tid=MainThread logger=splunk_ta_gcp.modinputs.cloud_monitor pos=pattern.py:__call__:47 |  | message="Failed to execute function=run, error=Traceback (most recent call last):
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunktalib/common/pattern.py", line 44, in __call__
    return func(*args, **kwargs)
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/modinputs/cloud_monitor/__init__.py", line 35, in run
    mconf.GoogleCloudMonitorConfig, "google_cloud_monitor", logger)
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/common.py", line 108, in get_configs
    conf = ConfCls()
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/modinputs/cloud_monitor/config.py", line 11, in __init__
    ggc.google_cloud_monitor)
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/config.py", line 28, in __init__
    self._task_configs = self._get_tasks()
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/config.py", line 84, in _get_tasks
    global_settings, google_creds, data_collections)
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/config.py", line 96, in _expand_tasks
    metrics = self._expand_metrics(task, global_settings, google_creds)
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/config.py", line 60, in _expand_metrics
    if re.match(pmetric, available_metirc) is not None:
  File "/Applications/Splunk/lib/python2.7/re.py", line 141, in match
    return _compile(pattern, flags).match(string)
  File "/Applications/Splunk/lib/python2.7/re.py", line 251, in _compile
    raise error, v # invalid expression
error: nothing to repeat
" 
0 Karma

rja93
New Member

I have also configured my google_cloud_global_settings.conf in my Splunk_TA_google-cloudplatform/local to:
[proxy_settings]
use_hec = 0
disabled = 0
proxy_password = ******

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...