Skip to main content

2 posts tagged with "observability"

View All Tags

Query Cloud Trail and DNS resolver logs with Data Query

· 6 min read
Erin (오예진)
Cloud Engineer
Tutorial new release

In production environments, logs are reference data for troubleshooting incidents and reviewing security. However, storing logs is not enough. To analyze operational issues and identify causes, you must be able to query the data quickly with the conditions you need. For logs that are repeatedly used for audits and diagnostics, it is especially important to consider the storage location, file structure, and query method from the beginning.

The two newly added tutorials explain how to use Data Catalog and Data Query to query and analyze operational logs stored in Object Storage with SQL.

Both documents use the same data analysis architecture, but they focus on different operational scenarios. One covers security auditing and change tracking based on user activity and resource change history. The other covers network diagnostics based on DNS query flows inside a VPC. Accordingly, the target logs are Cloud Trail logs and DNS resolver query logs.

Operational log storage -> Object Storage -> Data Catalog -> Data Query

Although the logs being analyzed are different, the workflow is the same: store logs in Object Storage, configure table metadata in Data Catalog, and query the data with SQL in Data Query.

This post looks at when each log is useful and how to analyze operational logs with SQL.

Cloud Trail logs: Reference data for checking resource change history

Cloud Trail records user activity and resource operation history in KakaoCloud as events. For example, you can check when a specific user logged in, which resources were created or modified, and which service generated an event. When these logs are connected to Data Query, you can answer common security audit and history tracking questions with SQL.

  • Which user changed which resource on a specific date?
  • Is there any operation history for a specific service or IP address?
  • Did create, update, or delete events occur for a specific resource?

The Query Cloud Trail logs with Data Query tutorial explains how to store Cloud Trail logs in gz format in Object Storage and configure Data Catalog and Data Query based on the project_event and domain_event paths. In this workflow, it is important to use partition columns such as date_id and hour_id as query conditions so that you only query the required period.

Because Cloud Trail logs are used for security audits and change tracking, it is better to narrow the query by conditions such as when, from which service, by whom, and for which resource, rather than scanning all logs at once.

DNS resolver query logs: Check DNS queries and responses inside a VPC

DNS resolver query logs record DNS query and response information generated inside a VPC. You can check which domains an application queried, whether responses were normal, and whether failed responses were concentrated in a specific time period. With Data Query, you can answer operational questions such as:

  • Which domains were queried most on a specific date?
  • During which time periods were non-NOERROR responses concentrated?
  • Did a specific VPC query a specific domain unusually often?
  • Are DNS queries with long response times recurring?

The Query DNS resolver query logs with Data Query tutorial configures tables based on the Object Storage path structure KCLogs/{region-name}/{year=yyyy/month=mm/day=dd} used by DNS resolver query logs. It then shows how to synchronize the year, month, and day partitions in Data Query and aggregate query counts or failed response counts by domain.

DNS logs are useful not only for network incident analysis, but also for checking external dependencies of internal services, unexpected domain queries, and repeated failed responses. If Cloud Trail shows the history of users and resource operations, DNS resolver query logs show how applications inside a VPC perform name resolution.

Why the two tutorials use the same pattern

Cloud Trail logs and DNS resolver query logs have different characteristics, but operators handle them in similar ways.

First, logs are stored in Object Storage. Next, metadata is configured in Data Catalog based on file paths and partition structures. Finally, Data Query uses SQL to query the logs with conditions such as specific periods, services, users, domains, and response codes.

After this common pattern is established, you can reuse the same flow of storage location, metadata configuration, and SQL querying even when the analysis target changes.

StepCloud Trail logsDNS resolver query logs
Storage locationObject StorageObject Storage
Main pathtrail/project_event, trail/domain_eventKCLogs/{region-name}/{year=yyyy/month=mm/day=dd}
Main partitionsdate_id, hour_idyear, month, day
Main analysis focusUser activity, resource changes, service eventsDomain queries, DNS response codes, VPC-specific query patterns
Query toolData QueryData Query

This structure helps manage operational log analysis in a consistent way. Instead of learning different query languages and storage structures for each separate tool, you can standardize the query flow around Object Storage, Data Catalog, and Data Query.

How to start operational log analysis

If you need to retain operational logs for a long time and query them when necessary, we recommend reviewing both tutorials together. For example, when an incident occurs during a specific time period, you can check resource change history with Cloud Trail logs and also review DNS query failures or response delays from the same time period with DNS resolver query logs. When logs with different characteristics can be queried in the same way, it becomes easier to interpret individual events in a broader operational context.

KakaoCloud technical documentation provides various tutorials based on practical operational scenarios. Use the following documents to learn how to store operational logs, configure them in a queryable form, and analyze them step by step with the conditions you need.

👉 Query Cloud Trail logs with Data Query
👉 Query DNS resolver query logs with Data Query

Advanced Managed Prometheus released for high-performance managed monitoring

· 4 min read
Evan (진은용)
Service Manager
Advanced Managed Prometheus

Hello.
On December 26, 2024, KakaoCloud's new service, Advanced Managed Prometheus, was released. 🎉

If you have experienced difficulties with complex monitoring setup or unexpected failure handling in cloud environments, Advanced Managed Prometheus is a service worth watching.

Advanced Managed Prometheus is a high-performance managed monitoring service that can efficiently collect, store, and analyze metric data in cloud-native environments. It is designed to reliably process large-scale data generated from Kubernetes, Virtual Machine, applications, and more, and provides scalability and stability optimized for cloud environments based on Prometheus's core features.

What is Prometheus?
Prometheus Logo

Prometheus is a project that began at SoundCloud in 2012 and is now an official project of the Cloud Native Computing Foundation (CNCF). It provides metric-based monitoring and collects, stores, and analyzes system and application performance data. In particular, it efficiently stores and queries data based on a time-series database. With scalability, reliability, and flexibility, Prometheus is an essential monitoring tool in cloud-native environments.

What is Advanced Managed Prometheus?

Now let's take a closer look at the key features and characteristics of KakaoCloud Advanced Managed Prometheus.
Advanced Managed Prometheus is a service that optimizes the powerful features of Prometheus for cloud-native environments and provides real-time metric collection and monitoring without complex configuration.

In large-scale environments, users may face limitations in data storage capacity and processing speed, difficulties in cluster configuration and maintenance, and problems where failures are not detected in advance. Advanced Managed Prometheus was designed to solve these operational difficulties. The service collects metric data in real time without the risk of data delay or loss. It also automates Prometheus installation, configuration, and backup, reducing operational burden and helping users focus on business logic and performance optimization instead of infrastructure management.

In Kubernetes environments in particular, it effectively manages large-scale container-based workloads and greatly improves visibility into cloud-native applications.

Key features of Advanced Managed Prometheus

1. Automated operations management

  • Automates Prometheus installation, upgrades, and backups to minimize operational burden.
  • Users can build a stable monitoring environment without complex configuration.

2. Scalable data storage

  • Large-scale metric data can be retained and processed reliably.
  • It responds flexibly to growing data volumes while maintaining performance.

3. Real-time alerts and Alert Center integration

  • By integrating with KakaoCloud Alert Center, you can configure threshold alerts for key metrics and logs.
  • When an issue occurs, immediate notification messages help you respond quickly.

4. Integrated monitoring

  • You can monitor and manage various resources such as Kubernetes, VMs, and applications in an integrated way.
  • Operational efficiency improves because all resources can be viewed at a glance.

5. Real-time dashboard and visualization

  • By integrating with Grafana, it provides real-time dashboard and visualization features.
  • Complex metric data can be analyzed and understood intuitively.

Usage purposes and examples

Advanced Managed Prometheus is especially useful in the following situations.

  • Monitoring large-scale workloads in Kubernetes clusters
  • Analyzing resource usage for VMs and applications
  • Collecting real-time metric data and managing alerts
  • Building a stable monitoring environment while minimizing operational burden

Closing

KakaoCloud Advanced Managed Prometheus is designed to make monitoring and alerts easier and more stable to operate in cloud-native environments. In fact, Advanced Managed Prometheus was created based on requests and feedback from many customers. We thought deeply about how to reduce complex monitoring setup and maintenance burden and help users manage infrastructure more effectively.

Select Advanced Managed Prometheus in the KakaoCloud console and easily build a monitoring environment. For more details, see the How-to Guides documentation.

Thank you.