Getting Data In

Why are we unable to connect to Splunk Cloud from Mule?

mragavan
New Member

Hi,

I tried using HEC and configured log4j as mentioned below in Mule,
but I'm getting a connection timed out error.

<Http name="Splunk"
        url="https://***url****.com:8088/services/collector/raw">
        <Property name="Authorization" value="*****token****" />
        <PatternLayout pattern="%-5p %d [%t] %X{correlationId}%c: %m%n" />
    </Http>

Added following dependency in pom

<dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-core</artifactId>
        <version>2.10.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-api</artifactId>
        <version>2.10.0</version>
    </dependency>
    <dependency>
        <groupId>com.splunk.logging</groupId>
        <artifactId>splunk-library-javalogging</artifactId>
        <version>1.7.1</version>
    </dependency>

Error:

Log4j2-TF-7-AsyncLoggerConfig--4 ERROR Unable to send HTTP in appender [Splunk] java.net.ConnectException: Connection timed out: connect

Any help is appreciated.

0 Karma

evania
Splunk Employee
Splunk Employee

Hi @mragavan ,

Did you have a chance to check out an answer? If it worked, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help you.

Thanks for posting!

0 Karma

DavidHourani
Super Champion

Hi @mragavan,

A time out usually indicates that a firewall could be blocking your connectivity.

Could you run the following see if you're able to get a connection : telnet HEC_IP 8888

Cheers,
David

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...