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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...