Configure Universal Forwarder
You must configure the Splunk Universal Forwarderto send the application metadata from Splunk AppDynamics SaaS to Splunk Platform for application context correlation.
Supported Version
Universal Forwarder version >= 7.0.0
Before You Begin
Ensure the following:
- You must have an universal forwarder already deployed in your environment. For more information about the deployment, see Deploy Universal Forwarder in Splunk Documentation.
- The universal forwarder must be functioning properly and sending logs to Splunk Platform. If there are any issues, contact Splunk Support.
Configuration
To configure your universal forwarder for log observer connect for Splunk AppDynamics SaaS :
Additional Configuration for Structured Logs
No Preconfigured Source Type
inputs.conf
file:For example, if your structured log is in JSON format, specify the sourcetype _json in the stanze:
[monitor:///var/log/my-app]
index = <index-name>
sourcetype=_json
disabled = 0
_meta = appd_app_name::<APPD_APP_NAME> appd_tier_name::<APPD_TIER_NAME>
Preconfigured Source Type
If you have already configured a custom source type for the structured logs but indexed field extraction is not enabled, you need to update the props.conf
in your universal forwarder and select the appropriate index extraction on your Splunk instance.
In the universal forwarder:
-
Go to
$SPLUNK_HOME/etc/system/local/props.conf
. -
Update the stanza to enable INDEXED_EXTRACTIONS by specifying one of the following formats:
-
CSV
-
JSON
-
TSV
-
PSV
-
W3C
-
-
Restart the universal forwarder.
For example, if the custom source type is custom-json
, update the stanza as follows:
[custom-json]
INDEXED_EXTRACTIONS = JSON
In the Splunk instance:
-
Click
. -
Click New Source Type.
-
In the Name field, specify the same custom source type name that you have mentioned on UF. For example, custom-json.
-
In the Description field, enter an appropriate description for the source type.
-
In the Destination app list, select the application as
system
.Important: You can select the Destination app list when you are using Splunk Cloud Platform or Splunk Enterprise deployment on Classic Experience. For Splunk Cloud Platform on Victoria Experience, the destination app is configured to000-self-service
by default. Contact your Splunk administrator to enable object sharing for the000-self-service
app toGlobal
. -
In the Category list, select the category as
Structured
. -
In the Indexed extraction list, select the format for the custom source type. The format can be one of the following:
-
CSV
-
JSON
-
TSV
-
PSV
-
W3C
-
-
Click Advanced and add New setting.
- In the KV_MODE list, select the value as
none
. -
Click Save.
The following image shows an example source type: