Splunk Integration with SpringBoot — Part 2
In the previous part we have discussed about the Splunk Setup which we will be using to display our collected logs for Analysing.
Now let’s discuss about the SpringBoot Application setup. we are setting up the Student service.
Implementation Example
In the Pom.xml we need to add the following dependencies to read the logs. In order the add the dependencies for the Spunk Logging we need it to add it in the form of Repositories as below. As we are using log4j for logging, we need to exclude the default logging given by spring-starter-web.
<repositories>
<repository>
<id>splunk-artifactory</id>
<name>Splunk Releases</name>
<url>https://splunk.jfrog.io/splunk/ext-releases-local</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.splunk.logging</groupId>
<artifactId>splunk-library-javalogging</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>…