Automic Workload Automation

Expand all | Collapse all

AWI: Logstash appender for Logback

Jump to Best Answer
  • 1.  AWI: Logstash appender for Logback

    Posted 09-12-2019 09:13 AM
    Edited by Michael Lowry 09-13-2019 03:54 AM
    We are running the Automic Web Interface (AWI) in a Cloud Foundry-based app cloud. Because the AWI server runs in its own container, getting access to logs is a bit cumbersome. To work around this limitation, I decided to try to find a way to redirect logging output from the AWI to a Logstash server, whence it can be accessed via Kibana.

    There is a Logstash Logback Encoder, but I it doesn't seem to be included with the AWI. I trying replacing the RollingFileAppender section in logback.xml with a corresponding LogstashTcpSocketAppender section, but no logging messages were sent.

    Has anyone gotten this working?

    @Robert Thullner: Is this something that could be added without too much difficulty?



  • 2.  RE: AWI: Logstash appender for Logback

    Posted 09-12-2019 09:32 AM
    Hey Michael,

    quick heads-up: Robert Thullner has left Broadcom. You may want to reference @Tatjana Radic instead.

    Br,
    Carsten​​


  • 3.  RE: AWI: Logstash appender for Logback

    Posted 09-13-2019 10:50 AM
    Hi Michael,

    Would it be an option to install filebeats on the AWI server to monitor the AWI log file(s) then have filebeats send the output to Logstash?
    Regards,
    George


  • 4.  RE: AWI: Logstash appender for Logback

    Posted 09-16-2019 09:55 AM
    @George Del Busto: Right now, we are running the AWI in a PaaS (platform as as service) app cloud using the standard Java buildpack. This approach is dead simple, but does not lend itself to running multiple independent processes side by side in the same container.

    In order to do as you suggest, we would likely have to switch to setting up full-blown VMs for the AWI, including installation of Tomcat etc.

    In the interests of making the process more reliable and repeatable, I have also played a bit with running the AWI in a Docker container, but I haven't gotten it working yet.


  • 5.  RE: AWI: Logstash appender for Logback
    Best Answer

    Posted 09-16-2019 09:56 AM
    I submitted a new idea for this:

    Enable Logstash appender for Logback in AWI