Activity Feed
- Got Karma for curl 35 error SSL connect error. 06-05-2020 12:50 AM
- Posted curl 35 error SSL connect error on Security. 09-16-2019 02:38 AM
- Tagged curl 35 error SSL connect error on Security. 09-16-2019 02:38 AM
- Tagged curl 35 error SSL connect error on Security. 09-16-2019 02:38 AM
- Tagged curl 35 error SSL connect error on Security. 09-16-2019 02:38 AM
- Posted Re: Java Logging Appenders: Error after sending logs from log4j-slf4j-impl directly to Splunk on All Apps and Add-ons. 06-20-2019 07:03 AM
- Posted Java Logging Appenders: Error after sending logs from log4j-slf4j-impl directly to Splunk on All Apps and Add-ons. 06-15-2019 04:10 AM
- Tagged Java Logging Appenders: Error after sending logs from log4j-slf4j-impl directly to Splunk on All Apps and Add-ons. 06-15-2019 04:10 AM
- Tagged Java Logging Appenders: Error after sending logs from log4j-slf4j-impl directly to Splunk on All Apps and Add-ons. 06-15-2019 04:10 AM
- Tagged Java Logging Appenders: Error after sending logs from log4j-slf4j-impl directly to Splunk on All Apps and Add-ons. 06-15-2019 04:10 AM
- Tagged Java Logging Appenders: Error after sending logs from log4j-slf4j-impl directly to Splunk on All Apps and Add-ons. 06-15-2019 04:10 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
1 | |||
0 |
09-16-2019
02:38 AM
1 Karma
Hi,
I have installed collectd on a server and I am trying to send metrics using the write_splunk plugin.
My server http port is 8088 and the SSL is disabled.
The write_splunk as written in /etc/collectd.conf configuration is:
<Plugin write_splunk>
server "10.163.0.X"
port "8088"
token "TOKEN"
ssl false
verifyssl false
</Plugin>
The data is not reaching the splunk instance.
When i read the collectd logs it is writing:
[error] write splunk plugin: curl_easy_perform failed to connect to 10.163.0.X:8088 with status 35: SSL connect error.
I am unable to enable SSL in my server.
Thank you in advance
John
... View more
06-20-2019
07:03 AM
Thank you for your assistance.
The problem was that i used the cloud, When i installed a normal Splunk instance the problem diapered.
Thank you again
John
... View more
06-15-2019
04:10 AM
Hi,
I am trying to send logs from demo app that I built using the log4j-slf4j-impl library to Splunk Cloud instance.
I followed the instruction in http://dev.splunk.com/view/splunk-logging-java/SP-CAAAE7M
My code contains a Main class, log4j2.xml, and a pom file.
Main class:
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.splunk.logging.HttpEventCollectorLog4jAppender;
public class TestApp {
public static final Logger LOG = LogManager.getLogger("testApp");
public static void main(String[] args) {
LOG.info("This Will Be Printed On Info");
LOG.error("This Will Be Printed On Error");
LOG.fatal("This Will Be Printed On Fatal");
}
}
log4j2.xml is located in path: \src\main\resources\log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration xmlns="http://logging.apache.org/log4j/2.0/config">
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" />
</Console>
<Http name="http" url="https://%URL%.cloud.splunk.com/services/collector" token="%TOKEN%" disableCertificateValidation="true">
<PatternLayout pattern="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" />
</Http>
</Appenders>
<Loggers>
<Logger name="testApp" level="debug" />
<Root level="info">
<AppenderRef ref="STDOUT" />
<AppenderRef ref="http"/>
</Root>
</Loggers>
</Configuration>
pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">;
<modelVersion>4.0.0</modelVersion>
<groupId>log4j-slf4j-impl-example</groupId>
<artifactId>log4j-slf4j-impl-example</artifactId>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<id>splunk-artifactory</id>
<name>Splunk Releases</name>
<url>http://splunk.jfrog.io/splunk/ext-releases-local</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.splunk.logging</groupId>
<artifactId>splunk-library-javalogging</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
</project>
The result of the app is:
INFO | 2019-06-14 15:39:46 | [main] TestApp (TestApp.java:9) - This Will Be Printed On Info
ERROR | 2019-06-14 15:39:46 | [main] TestApp (TestApp.java:10) - This Will Be Printed On Error
FATAL | 2019-06-14 15:39:46 | [main] TestApp (TestApp.java:11) - This Will Be Printed On Fatal
Which means that the app runs, and prints to console as in the appender, But the program continues to run,
in my opinion, it can't reach the URL address of my Splunk instance. I also checked my Splunk instance and no data reached the server.
Can any guide me on what is not configured correctly?
Thank you in advance
John
... View more