From the course: DevOps Foundations: Monitoring and Observability

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Best practices for logging

Best practices for logging

- [Instructor] Having structured logs is key to having usable and impactful logs. There are few considerations to be mindful of when using logs. Firstly, the content of your logs. Logs hold the raw information passing through your application. Depending on the industry you're in, there are certain data types like personal information, popularly known as PII, or financial information that should be protected data based on the regulations of those industries. It is important that you're aware of what is required to prevent regulatory issues. You should also consider the retention of your logs. Logs are often defined on a lifecycle. Again, depending on your use case, the lifecycle of your logs will differ. The lifecycle of logs is often defined by how long you need them available for active query or use, or how long you need or are required to have them in archival. As your logs grow and scale, this is an important one…

Contents