All Apps and Add-ons

why is the URL field in the Splunk Add-on for Cisco CWS sometimes empty?

stefan1988
Path Finder

The Splunk Add-on for Cisco CWS: url field is sometimes empty causing DM vulnerabilities in Enterprise Security filling up with unknown field values.

0 Karma
1 Solution

piebob
Splunk Employee
Splunk Employee

This is because url is build from 4 parts (cs_uri_scheme + "://" + cs_host + cs_uri_path + "?" + cs_uri_query) and when cs_uri_query is empty url will be empty.

Please adjust the TA and in props.conf instead of:
EVAL-url = cs_uri_scheme + "://" + cs_host + cs_uri_path + "?" + cs_uri_query

use:
EVAL-url = case(len(cs_uri_query)>0 AND len(cs_uri_path)>0,cs_uri_scheme + "://" + cs_host + cs_uri_path + "?" + cs_uri_query,
len(cs_uri_path)>0,cs_uri_scheme + "://" + cs_host + cs_uri_path,
1==1,cs_uri_scheme + "://" + cs_host)

View solution in original post

0 Karma

piebob
Splunk Employee
Splunk Employee

This is because url is build from 4 parts (cs_uri_scheme + "://" + cs_host + cs_uri_path + "?" + cs_uri_query) and when cs_uri_query is empty url will be empty.

Please adjust the TA and in props.conf instead of:
EVAL-url = cs_uri_scheme + "://" + cs_host + cs_uri_path + "?" + cs_uri_query

use:
EVAL-url = case(len(cs_uri_query)>0 AND len(cs_uri_path)>0,cs_uri_scheme + "://" + cs_host + cs_uri_path + "?" + cs_uri_query,
len(cs_uri_path)>0,cs_uri_scheme + "://" + cs_host + cs_uri_path,
1==1,cs_uri_scheme + "://" + cs_host)

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

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

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...