Skip to main content

4.12 How to Configure Splunk Forwarding

Scribbler supports forwarding logs to Splunk.

Procedure​

  1. In the navigation pane, go to Configuration > Splunk

    Image Description

  2. Click Enabled

  3. Provide the required parameters. Refer the in-screen Help for detailed instructions.

  4. HEC Endpoint URL -> URL of the Splunk HEC collector

  5. HEC Token -> A token required to send the logs to Splunk HEC collector. Must be generated from Splunk.

  6. HEC Event Format

    • Raw -> Sends the logs to Splunk as received in pure raw format. All the Splunk processing pipelines are executed.
    • Json Raw -> Sends the logs to Splunk in JSON format as per HEC standard. Splunk may skip some items during pipeline execution. Refer the Splunk team for more details.
  7. Use TLS -> Enable to connect to HTTPS HEC endpoint.

  8. Either CA Certificate or Ignore TLS Certificate Errors option should be enabled to forward the logs to Splunk through TLS.

  9. CA Certificate -> Provide the CA Chain in PEM format. Scribbler will forward only if the HEC endpoint's certificate is issued by the provided CA. A handy option "Fetch Current Cert" is available to fetch the CA Chain of the HEC endpoint.

  10. (Optional) Provide Default Source and Default Index for all the outgoing messages

  11. (Optional) Scribbler supports configuring source & source type for each outgoing message before sending it to Splunk. That will be handy if the Splunk indexer requires source type.

    • Scribbler supports defining metadata for an IP Address and IP Address + Regex combination.
    • If there are multiple applications running on single IP then, IP Address regex combination can be used as shown below.

    Image Description

    • In the above example,

      • Scribbler executes the regex on a message to be forwarded to Splunk
      • If both and IP and Regex matched then scribbler assigns source type to "scribbler" and stops further processing and forwards to splunk
      • If first condition does not match, It moves to next condition till a match is found.
      • The last condition should be IP Only without and regex.
    • The above configuration is for a machine where both scribbler log manager and windows agent is installed. The configuration correctly identifies the log to be forwarded to Splunk and sets correct source type.

  12. Click Save. The configuration will be saved, and it will take a min to take effect.