1 Reply Latest reply on Oct 17, 2019 5:43 AM by oguz_karakus

    Cannot prevent wildfly from creating log file

    oguz_karakus

      Hi All,

       

      I try to prevent creating log files. My logging.properties is as below:

       

      Note this file has been generated and will be overwritten if a

      # logging subsystem has been defined in the XML configuration.

       

       

      # Additional loggers to configure (the root logger is always configured)

      loggers=org.hibernate.SQL,audit.read,com.arjuna,com.company,com.company.className,com.hazelcast,com.vsct.oce.services,com.company.someClassName,sun.rmi,jacorb,org.jboss.as.config,jacorb.config,org.apache.tomcat.util.modeler

       

      logger.level=INFO

      logger.handlers=CONSOLE

       

      logger.org.hibernate.SQL.level=INFO

      logger.org.hibernate.SQL.useParentHandlers=true

       

      logger.audit.read.level=INFO

      logger.audit.read.useParentHandlers=false

      logger.audit.read.handlers=AUDITREADFILE

       

      logger.com.arjuna.level=WARN

      logger.com.arjuna.useParentHandlers=true

       

      logger.com.company.level=INFO

      logger.com.company.useParentHandlers=true

      logger.com.company.handlers=SENTRY

       

      logger.com.company.someClassName.level=ERROR

      logger.com.company.someClassName.useParentHandlers=true

       

      logger.com.hazelcast.level=WARN

      logger.com.hazelcast.useParentHandlers=true

       

      logger.com.vsct.oce.services.level=DEBUG

      logger.com.vsct.oce.services.useParentHandlers=true

       

      logger.com.company.someClassName.level=ERROR

      logger.com.company.someClassName.useParentHandlers=true

       

      logger.sun.rmi.level=WARN

      logger.sun.rmi.useParentHandlers=true

       

      logger.jacorb.level=WARN

      logger.jacorb.useParentHandlers=true

       

      logger.org.jboss.as.config.level=DEBUG

      logger.org.jboss.as.config.useParentHandlers=true

       

      logger.jacorb.config.level=ERROR

      logger.jacorb.config.useParentHandlers=true

       

      logger.org.apache.tomcat.util.modeler.level=WARN

      logger.org.apache.tomcat.util.modeler.useParentHandlers=true

       

      handler.AUDITREADFILE=org.jboss.logmanager.handlers.FileHandler

      handler.AUDITREADFILE.level=ALL

      handler.AUDITREADFILE.formatter=AUDITPATTERN

      handler.AUDITREADFILE.properties=append,autoFlush,enabled,fileName

      handler.AUDITREADFILE.append=true

      handler.AUDITREADFILE.autoFlush=true

      handler.AUDITREADFILE.enabled=true

      handler.AUDITREADFILE.fileName=/opt/jboss/wildfly/standalone/log/audit_read.log

       

      handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler

      handler.CONSOLE.level=INFO

      handler.CONSOLE.formatter=JsonFormatter

      handler.CONSOLE.properties=autoFlush,target,enabled

      handler.CONSOLE.autoFlush=true

      handler.CONSOLE.target=SYSTEM_OUT

      handler.CONSOLE.enabled=true

       

      handler.SENTRY=com.company.someClassName

      handler.SENTRY.module=com.company.module

      handler.SENTRY.level=ERROR

      handler.SENTRY.filter=not(match("(duplicate key value violates unique constraint)\\\\s.(idx_segment_uuid|idx_passenger_uuid|idx_item_uuid|pk_booking_number_lookup)"))

      handler.SENTRY.formatter=PATTERN

       

      # Additional formatters to configure

      formatters=COLOR-PATTERN

       

       

      formatter.JsonFormatter=com.company.someClassName

      formatter.JsonFormatter.module=com.company.module

      formatter.JsonFormatter.properties=version,facility,fields,extractStackTrace,filterStackTrace,mdcProfiling,timestampPattern,mdcFields,dynamicMdcFields,includeFullMdc

      formatter.JsonFormatter.version=1.0

      formatter.JsonFormatter.facility=java-test

      formatter.JsonFormatter.fields=Time,Severity,ThreadName,SourceClassName,SourceMethodName,SourceSimpleClassName,LoggerName,NDC

      formatter.JsonFormatter.extractStackTrace=true

      formatter.JsonFormatter.filterStackTrace=true

      formatter.JsonFormatter.mdcProfiling=true

      formatter.JsonFormatter.timestampPattern=yyyy-MM-dd'T'HH\:mm\:ss.SSSZ

      formatter.JsonFormatter.mdcFields=salesChannel,apiKey,sessionId,roles,userId,requestUri,bookingNumber,correlationId

      formatter.JsonFormatter.dynamicMdcFields=mdc.*,(mdc|MDC)fields

      formatter.JsonFormatter.includeFullMdc=true

       

      formatter.AUDITPATTERN=org.jboss.logmanager.formatters.PatternFormatter

      formatter.AUDITPATTERN.properties=pattern

      formatter.AUDITPATTERN.pattern=%d{yyyy-MM-dd HH\:mm\:ss} %s%e%n

       

      formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter

      formatter.PATTERN.properties=pattern

      formatter.PATTERN.pattern=%d{yyyy-MM-dd HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n

       

      formatter.COLOR-PATTERN=org.jboss.logmanager.formatters.PatternFormatter

      formatter.COLOR-PATTERN.properties=pattern

      formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n

      ~/wildfly/standalone/configuration $

      There is no regular file logger but server.log file still gets created on each restart. But only with limited content, it only consists of lines starting with to org.jboss class names, which are logged at startup:

      /wildfly/standalone/log $ cat server.log

      2019-10-15 14:42:29,408 INFO  [org.jboss.modules] (main) JBoss Modules version 1.8.7.Final

      2019-10-15 14:42:30,403 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.5.Final

      2019-10-15 14:42:30,437 INFO  [org.jboss.threads] (main) JBoss Threads version 2.3.2.Final

      2019-10-15 14:42:30,951 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 15.0.1.Final (WildFly Core 7.0.0.Final) starting

      2019-10-15 14:42:30,955 DEBUG [org.jboss.as.config] (MSC service thread 1-2) Configured system properties:

              [Standalone] =

              awt.toolkit = sun.awt.X11.XToolkit

              com.newrelic.agent.deps.org.apache.commons.logging.LogFactory = com.newrelic.agent.logging.ApacheCommonsAdaptingLogFactory

              file.encoding = UTF-8

              file.encoding.pkg = sun.io

              file.separator = /

              hazelcast.deploy = client

              hazelcast_group_name = company-dev-x-dev-test

              hazelcast_group_password = <redacted>

              java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment

              java.awt.headless = true

              java.awt.printerjob = sun.print.PSPrinterJob

              java.class.path = /opt/jboss/wildfly/jboss-modules.jar:/opt/jboss/wildfly/standalone/lib/newrelic.jar

              java.class.version = 52.0

              java.endorsed.dirs = /usr/lib/jvm/java-1.8-openjdk/jre/lib/endorsed

              java.ext.dirs = /usr/lib/jvm/java-1.8-openjdk/jre/lib/ext:/usr/java/packages/lib/ext

              java.home = /usr/lib/jvm/java-1.8-openjdk/jre

              java.io.tmpdir = /tmp

              java.library.path = /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

              java.net.preferIPv4Stack = true

              java.runtime.name = OpenJDK Runtime Environment

              java.runtime.version = 1.8.0_191-b12

              java.specification.name = Java Platform API Specification

              java.specification.vendor = Oracle Corporation

              java.specification.version = 1.8

              java.util.logging.manager = org.jboss.logmanager.LogManager

              java.vendor = Oracle Corporation

              java.vendor.url = http://java.oracle.com/

              java.vendor.url.bug = http://bugreport.sun.com/bugreport/

              java.version = 1.8.0_191

              java.vm.info = mixed mode

              java.vm.name = OpenJDK 64-Bit Server VM

              java.vm.specification.name = Java Virtual Machine Specification

              java.vm.specification.vendor = Oracle Corporation

              java.vm.specification.version = 1.8

              java.vm.vendor = Oracle Corporation

              java.vm.version = 25.191-b12

              javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder

              jboss.as.management.blocking.timeout = 900

              jboss.bind.address = 0.0.0.0

              jboss.home.dir = /opt/jboss/wildfly

              jboss.host.name = d-company-dev-x-dev-test-core-cp6i7our

              jboss.modules.dir = /opt/jboss/wildfly/modules

              jboss.modules.system.pkgs = org.jboss.byteman,com.newrelic

              jboss.node.name = d-company-dev-x-dev-test-core-cp6i7our

              jboss.qualified.host.name = d-company-dev-x-dev-test-core-cp6i7our

              jboss.server.base.dir = /opt/jboss/wildfly/standalone

              jboss.server.config.dir = /opt/jboss/wildfly/standalone/configuration

              jboss.server.data.dir = /opt/jboss/wildfly/standalone/data

              jboss.server.deploy.dir = /opt/jboss/wildfly/standalone/data/content

              jboss.server.log.dir = /opt/jboss/wildfly/standalone/log

              jboss.server.name = d-company-dev-x-dev-test-core-cp6i7our

              jboss.server.persist.config = true

              jboss.server.temp.dir = /opt/jboss/wildfly/standalone/tmp

              jboss.tx.node.id = -dev-test-core-cp6i7our

              line.separator =

       

              logging.configuration = file:/opt/jboss/wildfly/standalone/configuration/logging.properties

              module.path = /opt/jboss/wildfly/modules

              org.jboss.boot.log.file = /opt/jboss/wildfly/standalone/log/server.log

              org.jboss.resolver.warning = true

              os.arch = amd64

              os.name = Linux

              os.version = 3.10.0-957.21.3.el7.x86_64

              path.separator = :

              sun.arch.data.model = 64

              sun.boot.class.path = /usr/lib/jvm/java-1.8-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8-openjdk/jre/classes

              sun.boot.library.path = /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64

              sun.cpu.endian = little

              sun.cpu.isalist =

              sun.io.unicode.encoding = UnicodeLittle

              sun.java.command = /opt/jboss/wildfly/jboss-modules.jar -mp /opt/jboss/wildfly/modules org.jboss.as.standalone -Djboss.home.dir=/opt/jboss/wildfly -Djboss.server.base.dir=/opt/jboss/wildfly/standalone -b 0.0.0.0

              sun.java.launcher = SUN_STANDARD

              sun.jnu.encoding = UTF-8

              sun.management.compiler = HotSpot 64-Bit Tiered Compilers

              sun.os.patch.level = unknown

              user.country = US

              user.dir = /opt/jboss

              user.home = /opt/jboss

              user.language = en

              user.name = jboss

              user.timezone = Europe/Amsterdam

      2019-10-15 14:42:30,956 DEBUG [org.jboss.as.config] (MSC service thread 1-2) VM Arguments: -D[Standalone] -XX:+UseCompressedOops -XX:+UseCompressedOops -Xms4096m -Xmx4096m -XX:MaxPermSize=512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman,com.newrelic -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseStringDeduplication -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -javaagent:/opt/jboss/wildfly/standalone/lib/newrelic.jar -Dhazelcast.deploy=client -Dhazelcast_group_name=company-dev-x-dev-test -Dhazelcast_group_password=company-dev-x-dev-test-fufjwkxjrhs -Djboss.tx.node.id=-dev-test-core-cp6i7our -Duser.timezone=Europe/Amsterdam -Djboss.as.management.blocking.timeout=900 -Dorg.jboss.boot.log.file=/opt/jboss/wildfly/standalone/log/server.log -Dlogging.configuration=file:/opt/jboss/wildfly/standalone/configuration/logging.properties

      2019-10-15 14:42:32,860 INFO  [org.wildfly.security] (ServerService Thread Pool -- 27) ELY00001: WildFly Elytron version 1.7.0.Final

      2019-10-15 14:42:34,536 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.

      2019-10-15 14:42:34,631 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 30) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.

      2019-10-15 14:42:35,187 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/84/d52ebf43b9d13cb2728f9ff36968307130067d/content

      2019-10-15 14:42:35,457 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/58/22245d03c07f88102a8f05a801d859550ae5c7/content

      2019-10-15 14:42:35,692 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/42/3facf150c216d6d7f2743b4dbfee9839baf0bf/content

      2019-10-15 14:42:35,935 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/7b/5e8bf2af5a8f76bb31e22ca63437d1283d5e26/content

      2019-10-15 14:42:36,149 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/3a/e9ea2a783f0422920fd55a06ad1665441b9bcb/content

      2019-10-15 14:42:36,330 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/cd/0caae81c806f98815d5976b1c1bd952e9979db/content

      2019-10-15 14:42:36,565 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/6f/863b11364d918e8f4688ce4e81cd8314d69f4c/content

      2019-10-15 14:42:36,570 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/02/60215dcf6499de6c556d61c759f2dd87527103/content

      2019-10-15 14:42:36,875 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/ba/0dde525e1765cced9f4699b4811322ab95ba0e/content

      2019-10-15 14:42:37,162 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 5) WFLYDR0001: Content added at location /opt/jboss/wildfly/standalone/data/content/31/7853d7e7f615646cc12eaadbf3c156a371fd1e/content

      2019-10-15 14:42:37,193 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)

      2019-10-15 14:42:37,235 INFO  [org.xnio] (MSC service thread 1-2) XNIO version 3.6.5.Final

      2019-10-15 14:42:37,257 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.6.5.Final

      2019-10-15 14:42:37,370 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 50) WFLYCLINF0001: Activating Infinispan subsystem.

      2019-10-15 14:42:37,393 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 74) WFLYWS0002: Activating WebServices Extension

      2019-10-15 14:42:37,428 INFO  [org.wildfly.extension.microprofile.config.smallrye._private] (ServerService Thread Pool -- 60) WFLYCONF0001: Activating WildFly MicroProfile Config Subsystem

      2019-10-15 14:42:37,438 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 70) WFLYSEC0002: Activating Security Subsystem

      2019-10-15 14:42:37,453 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 64) WFLYNAM0001: Activating Naming Subsystem

      2019-10-15 14:42:37,483 INFO  [org.wildfly.extension.microprofile.opentracing] (ServerService Thread Pool -- 63) WFLYTRACEXT0001: Activating MicroProfile OpenTracing Subsystem

      2019-10-15 14:42:37,481 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 51) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors

      2019-10-15 14:42:37,515 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 5.0.8.Final

      2019-10-15 14:42:37,515 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 52) WFLYRS0016: RESTEasy version 3.6.2.Final

      2019-10-15 14:42:37,550 INFO  [org.wildfly.extension.microprofile.metrics.smallrye] (ServerService Thread Pool -- 62) WFLYMETRICS0001: Activating Eclipse MicroProfile Metrics Subsystem

      2019-10-15 14:42:37,551 INFO  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.11.Final)

      2019-10-15 14:42:37,546 INFO  [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service

      2019-10-15 14:42:37,545 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) WFLYMAIL0002: Unbound mail session [java:jboss/mail/Default]

      2019-10-15 14:42:37,586 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 57) WFLYJSF0007: Activated the following JSF Implementations: [main]

      2019-10-15 14:42:37,603 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-6) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]

      2019-10-15 14:42:37,613 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0003: Undertow 2.0.15.Final starting

      2019-10-15 14:42:37,619 INFO  [org.wildfly.extension.microprofile.health.smallrye] (ServerService Thread Pool -- 61) WFLYHEALTH0001: Activating Eclipse MicroProfile Health Subsystem

      2019-10-15 14:42:37,625 INFO  [org.jboss.as.security] (MSC service thread 1-6) WFLYSEC0001: Current PicketBox version=5.0.3.Final

      2019-10-15 14:42:37,783 INFO  [io.smallrye.metrics] (MSC service thread 1-2) Converted [2] config entries and added [4] replacements

      2019-10-15 14:42:37,786 INFO  [io.smallrye.metrics] (MSC service thread 1-2) Converted [3] config entries and added [14] replacements

      2019-10-15 14:42:38,078 INFO  [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.

      2019-10-15 14:42:38,078 INFO  [org.jboss.as.ejb3] (MSC service thread 1-4) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.

      2019-10-15 14:42:38,132 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 73) WFLYUT0014: Creating file handler for path '/opt/jboss/wildfly/redirect' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']

      2019-10-15 14:42:38,161 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 43) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 42.2)

      2019-10-15 14:42:38,187 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0018: Started Driver service with driver-name = postgresql

      2019-10-15 14:42:38,210 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0012: Started server private-server.

      2019-10-15 14:42:38,214 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0018: Host private-host starting

      2019-10-15 14:42:38,224 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 73) WFLYUT0014: Creating file handler for path '/data/s3_share/ticket' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']

      2019-10-15 14:42:38,235 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 73) WFLYUT0014: Creating file handler for path '/data/s3_share/template' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']

      2019-10-15 14:42:38,244 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.

      2019-10-15 14:42:38,255 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 73) WFLYUT0014: Creating file handler for path '/data/s3_share/maps' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']

      2019-10-15 14:42:38,258 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 73) WFLYUT0014: Creating file handler for path '/data/s3_share/ssim' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']

      2019-10-15 14:42:38,265 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting

      2019-10-15 14:42:38,463 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTP listener metrics-listener listening on 0.0.0.0:9988

      2019-10-15 14:42:38,464 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on 0.0.0.0:8080

      2019-10-15 14:42:38,535 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0010: Unbound data source [java:/jdbc/s3_config]

      2019-10-15 14:42:38,535 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0010: Unbound data source [java:/jdbc/s3_communication]

      2019-10-15 14:42:38,536 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0010: Unbound data source [java:/jdbc/s3_ticket]

      2019-10-15 14:42:38,538 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0010: Unbound data source [java:/jdbc/s3_log]

      2019-10-15 14:42:38,539 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0010: Unbound data source [java:/jdbc/s3_auth]

      2019-10-15 14:42:38,543 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0010: Unbound data source [java:/jdbc/s3_travel]

      2019-10-15 14:42:38,545 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0010: Unbound data source [java:/jdbc/s3_availability]

      2019-10-15 14:42:38,546 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0010: Unbound data source [java:/jdbc/s3_crm]

      2019-10-15 14:42:38,547 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0010: Unbound data source [java:/jdbc/s3_payment]

      2019-10-15 14:42:38,689 INFO  [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0493: EJB subsystem suspension complete

      2019-10-15 14:42:38,795 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-1) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_crm

      2019-10-15 14:42:38,797 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-2) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_communication

      2019-10-15 14:42:38,797 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-7) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_ticket

      2019-10-15 14:42:38,798 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-8) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_travel

      2019-10-15 14:42:38,804 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-3) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_config

      2019-10-15 14:42:38,806 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-5) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_availability

      2019-10-15 14:42:38,794 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-4) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_payment

      2019-10-15 14:42:38,794 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-6) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_log

      2019-10-15 14:42:38,865 INFO  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-5) IJ020018: Enabling <validate-on-match> for java:/jdbc/s3_auth

      2019-10-15 14:42:38,867 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) WFLYJCA0001: Bound data source [java:/jdbc/s3_availability]

      2019-10-15 14:42:38,867 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) WFLYJCA0001: Bound data source [java:/jdbc/s3_auth]

      2019-10-15 14:42:38,879 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:/jdbc/s3_communication]

      2019-10-15 14:42:38,880 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:/jdbc/s3_ticket]

      2019-10-15 14:42:38,880 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:/jdbc/s3_payment]

      2019-10-15 14:42:38,881 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:/jdbc/s3_config]

      2019-10-15 14:42:38,881 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:/jdbc/s3_log]

      2019-10-15 14:42:38,883 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:/jdbc/s3_crm]

      2019-10-15 14:42:38,884 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:/jdbc/s3_travel]

      2019-10-15 14:42:39,137 INFO  [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none

      2019-10-15 14:42:39,151 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-3) WFLYDM0111: Keystore /opt/jboss/wildfly/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost

      2019-10-15 14:42:39,184 INFO  [stdout] (Controller Boot Thread) S3P Wildfly GELF formatter is initialized...

      2019-10-15 14:42:39,200 INFO  [com.company.sentry.wildfly.WildflySentryHandler] (Controller Boot Thread) Initialized SentryHandler

      ~/wildfly/standalone/log $ ^C

      ~/wildfly/standalone/log $

       

      Any ideas on why the file still gets created?

        • 1. Re: Cannot prevent wildfly from creating log file
          oguz_karakus

          I didn't mention that wildfly was running inside docker.

          It turns out logging.properties coming inside the docker image was kicking in and producing the file until it was modified according to standalone.xml. Once I added a default logging.properties file with no file handler to the image, problem resolved.