Publish Sysylog and Application Logs From MuleSoft Runtime Fabric to GrayLog
In this article, see how to publish Syslog and application logs from MuleSoft Runtime Fabric to Graylog.
Join the DZone community and get the full member experience.
Join For FreeAgenda
General practice to verify logs in RTF
- View Logs from an Application using Ops Center.
- By Forwarding logs to External Analytical tool (Demo GrayLog).
- Configure SysLog in log forward in RTF to send logs to external tool.
View Logs from an Application using Ops Center
Ops Center presents a current of logs produced by applications and services operating on Runtime Fabric on VMs / Bare Metal. This is beneficial when log forwarding is not configured.
- From Ops Center, navigate to Logging
- Select Kubernetes
- Select the Pods tab
- In the drop-down list adjacent to the search input area, select the ID of the environment where the application is deployed.
- Locate the pod name that starts with the name of your application
- Select that pod name and then select Logs. As in the below snapshot
By Forwarding logs to External Analytical tool (Demo GrayLog)
Runtime Fabric on VMs / Bare Metal supports log forwarding to:
Anypoint Monitoring
Third-party logging solutions using log forwarding output plugins:
Azure Log Analytics
Elasticsearch
Graylog Extended Log Format (GELF)
Splunk
CloudWatch
Only one external log forwarding configuration is supported at any one time. Nevertheless, we can configure Anypoint log forwarding and an external log forwarding service at the same time.
External log forwarding does not currently support proxies that are configured for a Runtime Fabric cluster. You must explicitly configure firewall rules to allow the outbound IP address and port of the external log forwarding service.
Configuration can be done in Log forwarding of Runtime Fabric
Configuration done in GrayLog to accept log input from Runtime Fabric
Log can be monitored in DashBoard/Alert in GrayLog.
Send Syslog from MuleSoft RTF to GrayLog
Opinions expressed by DZone contributors are their own.
Comments