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!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...