All Apps and Add-ons

Google Cloud Platform Unable to Pull Data

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 |  | message="Failed to execute function=run, error=Traceback (most recent call last):
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunktalib/common/", line 44, in __call__
    return func(*args, **kwargs)
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/modinputs/cloud_monitor/", line 35, in run
    mconf.GoogleCloudMonitorConfig, "google_cloud_monitor", logger)
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/", line 108, in get_configs
    conf = ConfCls()
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/modinputs/cloud_monitor/", line 11, in __init__
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/", line 28, in __init__
    self._task_configs = self._get_tasks()
  File "/Applications/Splunk/etc/apps/Splunk_TA_google-cloudplatform/bin/splunk_ta_gcp/legacy/", 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/", 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/", line 60, in _expand_metrics
    if re.match(pmetric, available_metirc) is not None:
  File "/Applications/Splunk/lib/python2.7/", line 141, in match
    return _compile(pattern, flags).match(string)
  File "/Applications/Splunk/lib/python2.7/", line 251, in _compile
    raise error, v # invalid expression
error: nothing to repeat
0 Karma

New Member

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

0 Karma
Get Updates on the Splunk Community!

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 ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Get More Out of Your Security Practice With a SIEM

Get More Out of Your Security Practice With a SIEMWednesday, July 31, 2024  |  11AM PT / 2PM ETREGISTER ...