Back to Browse

Send Logs from Mule Application to Splunk Cloud

4.4K views
Mar 2, 2022
32:04

This video is step by step guide for sending logs from a mule application to splunk cloud. I am using SPLUNK-Liberary "Javalooging" (https://github.com/splunk/splunk-library-javalogging) and integrated it with Log4J in mule application. "HTTP event collector" setup is required in Splunk cloud for this solution to work. As discussed in the video 1: pom.xml Add following dependency : 1.1 groupId org.apache.logging.log4j artifactId log4j-core version 2.17.0 1.2 groupId org.apache.logging.log4j artifactId log4j-api version 2.17.0 1.3 groupId com.splunk.logging artifactId splunk-library-javalogging version 1.11.4 2: pom.xml Add following repository : 2.1 id splunk-artifactory name Splunk Releases url https://splunk.jfrog.io/splunk/ext-releases-local 3. log4j.xml update / add following : 3.1 add following attribute in configuration element : status="INFO" name="cloudhub" packages="com.splunk.logging,org.apache.logging.log4j" 3.2 Add following element in Appenders element. Replace { }with grater than less than sign respectively. Make sure you add your own token. { SplunkHttp name="Splunk" url="https://inputs.prd-p-bvchs.splunkcloud.com:8088" token="a255e023-33da-42ef-b5fed-7265b5fc75f8" index="demoindex1" batch_size_count="1" disableCertificateValidation="true" / } 3.3 Add following element in Loggers element. Replace { }with grater than less than sign respectively. {AsyncLogger name="Splunk.Logger" level="INFO"} {AppenderRef ref="Splunk"/} {/AsyncLogger} ====================================================== Please provide your feedback in the comment section, as it is important for me to know what is working and is not working for my fellow technologists. If you are looking for any specific topic /integration please drop me a note , I will try to create video for it. ========================================================

Download

0 formats

No download links available.

Send Logs from Mule Application to Splunk Cloud | NatokHD