Configure Universal Forwarder
You must configure the Splunk Universal Forwarder to send the application metadata from Splunk AppDynamics On-Premises to Splunk Enterprise for application context correlation.
-
The version of universal forwarder must be greater than or equal to the version 7.0.0.
-
You must have an universal forwarder already deployed in your environment. For more information about the deployment, see the Splunk Documentation.
-
The universal forwarder must be functioning properly and sending logs to Splunk Platform. If there are any issues, contact Splunk Support.
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
. -
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: