• Learn how to use LogDNA’s Template Library to get up and running with NGINX, Heroku, and Windows quickly, as well as the Browser Logger and Web Server Templates for frontend developers
LogDNA continuously innovates in log management solutions to improve and grow the developer ecosystem through streamlined usability. LogDNA can efficiently index, analyze, and aggregate log data across different sources such as cloud systems, orchestration platforms, bare-metal servers, and applications. It is designed for various use cases and works with any infrastructure, architecture, or language to support logging at scale.
One of LogDNA’s major out-of-the-box offerings is its Template Library, which helps users manage their log data at every level of their stack. The templates help set baseline log data without manually creating views, boards, and screens, making log access and insight management much quicker.
This tutorial will show you how to use LogDNA’s Template Library to get up and running with NGINX, Heroku, and Windows quickly, as well as the Browser Logger and Web Server Templates for frontend developers. It will concentrate on the information that each of these templates highlights and why that information is valuable to developers, SREs, and DevOps teams.
So, how do you get started with LogDNA?
The LogDNA NGINX Ingress Controller Template gives users better visibility into their infrastructure thanks to pre-configured views, boards, and screens for the NGINX Ingress Controller for Kubernetes (nginxinc/Kubernetes-ingress) logs. These customized dashboards and graphs can help you quickly put LogDNA’s visibility tools to good use. NGINX Ingress Controller is available in both open-source and commercial versions, and it serves as the foundation for Kubernetes's default "community'' ingress controller.
To begin setting up the NGINX Ingress Controller Template, you first need to create an account for your organization with LogDNA. You can start with a free trial account. Then, you’ll need to log in to add a log source to LogDNA.
To configure the NGINX Ingress Controller Template, navigate to the dashboard, select Templates, and choose NGINX from the list:
Next, choose the NGINX Ingress Controller Template from the list of LogDNA Template Libraries, then click the Get Started button:
When you’ve successfully applied the template, it will look like this:
Expect a generated file with the template. Drag and drop the file where directed. After you’ve successfully applied the NGINX Ingress Controller Template, it will automatically configure views, screens, and boards to help you visualize Web traffic, latency, and response codes coming from the NGINX Ingress Controller. Using NGINX, your development team can now view logs from different sources all in one platform.
You can modify the template according to your requirements. You can add alerts or any other settings that suit your chosen logging format.
There are three main components of each template: Views, Screens, and Boards, and.
The Views component of the NGINX Ingress Controller template exposes HTTP and HTTPS routes outside individual cluster services, and provides visibility into traffic and HTTP response codes, which helps with monitoring requests and upstream responses. It contains HTTP 2XX, HTTP 5XX, HTTP 404, HTTP Forbidden/Unauthorized (401, 403), and HTTP server errors, high-level Web server functionalities controlling the ingress.
The Screens component of The NGINX Ingress Controller template contains three screens for Web Analytics, Server Health, and Web Server Security.
The Boards component of the NGINX Ingress Controller template’ includes built-in graph boards that visualize HTTP response codes and errors, traffic volume, response times, and even a specified percentile of a set of values.
All template components give instant visibility into your application logs, and are customizable to meet your needs. You can read more in the LogDNA documentation for further guidance on setting up the NGINX Ingress Controller template.
To get trends and break down browser-side issues by the error message, OS, browser version, and more, you can use the LogDNA Browser Logger integration with the Browser Logger Template, which is compatible with the LogDNA Browser Logger's errors and logs.
To configure the Browser Logger Template, download it from the LogDNA template library and apply the template. You can get started with the Browser Logger Template in three easy steps:
As with all LogDNA templates, the Browser Logger template consists of a collection of pre-configured Views, Boards, and Screens.
The Views, Boards, and Screens components of the Windows Security template provide a window into the security state of your system.
You can quickly identify excessive login attempts, audits on cleared logs, and unusual access patterns using the Windows Security template. You can set up alerts so that you receive notifications when unexpected events occur, and you can use the dashboards to keep a constant eye on your servers' access patterns. For the Windows Security template to function properly, you must configure your NXLog to gather security event logs.
Follow these steps to set up the Windows Security Template,:
The Web Server Template includes detailed dashboards and graphs that make it simple to see your HTTP Web servers. It contains visibility tools that provide clear and specific HTTP Web server logs that the template analyzes and visualizes in views, screens, and boards.
The Heroku template can help you get started with things like app crash alerts, HTTP 500 trends, and visualizing the 95th percentile of response times, among other things. The Heroku Template utilizes Heroku platform error codes and the default router and system logs. Unlike other LogDNA templates, the Heroku template includes four components: Views, Boards, Screens, and Custom Parsing. Custom parsing is for parsing deployment hashes and initiating users into deploy_user and deploy_version.
Alternatively, you can work around the installation using a prebuilt JSON file.
3. When prompted to import the configuration file, drag and drop the JSON file.
4. Then, the “Import Configuration” page will appear.
5. Click “Import” and reload the page to display the updated UI.
For all of the template configurations, make sure to allow LogDNA in your ad blocker so that you will be able to see the changes. To learn more about prebuilt configurations, you can read this documentation.
LogDNA’s log management solution acts as a one-stop-shop for DevOps teams looking to streamline their processes through centralized application and system observability. By automating centralized log management, teams can increase productivity and better prepare to handle technological complexity. LogDNA provides several templates to customize their log management using various log agents. If you have any further questions, you can join the LogDNA community discussion forums to get answers from other users.