You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logstash being a Java application uses JDK and in some circumstances that code log some messages that could be helpful to troubleshoot and investigate some issues. For example, HTTP client provided by the JDK logs some informations when issues HTTP requests or receive responses. However, those JDK libraries leverages JUL (Java Util Logging) to log the messages, and if not configured the user can't see anything.
Document how to configure JUL from Logstash perspective to obtain such log messages.
Pre-existing knowledge
How to enable JUL (Java Util Logging) in Logstash
edit a file with loggers definitions name it <LS_HOME>/conf/jul.properties:
handlers= java.util.logging.ConsoleHandler,java.util.logging.FileHandler
.level= ALL
java.util.logging.FileHandler.pattern = <USER LOGS FOLDER>/logs/jdk_http%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.level=ALL
java.util.logging.FileHandler.maxLocks = 100
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.ConsoleHandler.level = INFO # or put FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
# defines the logger we are interested
sun.net.www.protocol.http.HttpURLConnection.level = ALL
then in their config/jvm.options configure the setting to point to the created config file, adds the following line:
Logstash being a Java application uses JDK and in some circumstances that code log some messages that could be helpful to troubleshoot and investigate some issues. For example, HTTP client provided by the JDK logs some informations when issues HTTP requests or receive responses. However, those JDK libraries leverages JUL (Java Util Logging) to log the messages, and if not configured the user can't see anything.
Document how to configure JUL from Logstash perspective to obtain such log messages.
Pre-existing knowledge
How to enable JUL (Java Util Logging) in Logstash
<LS_HOME>/conf/jul.properties
:config/jvm.options
configure the setting to point to the created config file, adds the following line:Couple of refs:
An example from my local env, without any proxy:
The text was updated successfully, but these errors were encountered: