Open pradeepsingh1234 opened 8 years ago
i've this in the config
<match glassfish.**>
type stdout
</match>
<source>
type forward
</source>
and it's listening to 24224
2017-01-27 14:18:31 -0800 [info]: shutting down output type="stdout" plugin_id="object:3fdd9a043334"
2017-01-27 14:18:31 -0800 [info]: shutting down output type="tdlog" plugin_id="object:3fdd998acf6c"
2017-01-27 14:18:31 -0800 [info]: listening fluent socket on 0.0.0.0:24224
2017-01-27 14:18:31 -0800 [info]: listening dRuby uri="druby://127.0.0.1:24230" object="Engine"
not sure what that shutting down output type stdout means, but i have another match to stdout and that works.
same thing here … application is working fine , but do not see any output from fluentd
<source>
@type forward
port 24224
</source>
<match **>
@type stdout
</match>
WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
Nov 22, 2018 10:29:50 AM org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer addServletWithApplication
INFO: Registering the Jersey servlet application, named com.github.nagaseyasuhito.sample.slf4j.fluentd.Api, at the servlet mapping /api/*, with the Application class of the same name.
Nov 22, 2018 10:29:50 AM org.glassfish.jersey.server.ApplicationHandler initialize
INFO: Initiating Jersey application, version Jersey: 2.10.4 2014-08-08 15:09:00...
Nov 22, 2018 10:29:50 AM com.sun.enterprise.web.WebApplication start
INFO: Loading application [sample-slf4j-fluentd-0.0.1-SNAPSHOT] at [/]
Nov 22, 2018 10:29:50 AM org.glassfish.deployment.admin.DeployCommand execute
INFO: sample-slf4j-fluentd-0.0.1-SNAPSHOT was successfully deployed in 639 milliseconds.
Nov 22, 2018 10:29:50 AM PluginUtil doDeploy
INFO: Deployed sample-slf4j-fluentd-0.0.1-SNAPSHOT
Hit ENTER to redeploy, X to exit
Nov 22, 2018 10:30:05 AM com.sun.web.security.RealmAdapter getAppContextID
WARNING: Context path from ServletContext: differs from path from bundle: /
[INFO] Generated UUID is 78b813e3-1878-4bb8-9004-0db97a902b17
[INFO] Generated UUID is e9422792-8084-4819-9ea0-9d28c613ea9f
[INFO] Generated UUID is ccddc4f5-189d-43e2-81eb-cd4d0936823b
[INFO] Generated UUID is 91d5a8fa-cf1d-4b6d-a75d-87325e767293
[INFO] Generated UUID is 1b2580b2-2bfb-45cc-9c28-77ef2b9ea248
[INFO] Generated UUID is 2d66677d-7954-4692-990b-9920b7a4bbbf
2018-11-22 15:27:50 +0000 [info]: fluent/log.rb:322:info: using configuration file: <ROOT>
<source>
@type forward
port 24224
</source>
<match **>
@type stdout
</match>
</ROOT>
2018-11-22 15:27:50 +0000 [info]: fluent/log.rb:322:info: starting fluentd-1.3.0 pid=6 ruby="2.3.3"
2018-11-22 15:27:50 +0000 [info]: fluent/log.rb:322:info: spawn command to main: cmdline=["/usr/bin/ruby2.3", "-Eascii-8bit:ascii-8bit", "/usr/local/bin/fluentd", "-c", "/fluentd/etc/fluent.conf", "-p", "/fluentd/plugins", "-v", "--under-supervisor"]
2018-11-22 15:27:51 +0000 [info]: fluent/log.rb:322:info: gem 'fluentd' version '1.3.0'
2018-11-22 15:27:51 +0000 [info]: fluent/log.rb:322:info: adding match pattern="**" type="stdout"
2018-11-22 15:27:51 +0000 [info]: fluent/log.rb:322:info: adding source type="forward"
2018-11-22 15:27:51 +0000 [info]: #0 fluent/log.rb:322:info: starting fluentd worker pid=29 ppid=6 worker=0
2018-11-22 15:27:51 +0000 [info]: #0 fluent/log.rb:322:info: listening port port=24224 bind="0.0.0.0"
2018-11-22 15:27:51 +0000 [info]: #0 fluent/log.rb:322:info: fluentd worker is now running worker=0
2018-11-22 15:27:51.097765400 +0000 fluent.info: {"worker":0,"message":"fluentd worker is now running worker=0"}
I ran sample with my fluentd config and don't see logs are going there, how to debug issues ?