DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Building With Open Policy Agent (OPA) for Better Policy as Code
  • Why the Industrial IoT World Needs Open Source to Innovate
  • JSON-Based Serialized LOB Pattern
  • Streaming in Mule

Trending

  • Adopting Agile Practices for Workforce Management: Benefits, Challenges, and Practices
  • Cloud Native Deployment of Flows in App Connect Enterprise
  • Best GitHub-Like Alternatives for Machine Learning Projects
  • Traffic Management and Network Resiliency With Istio Service Mesh
  1. DZone
  2. Data Engineering
  3. AI/ML
  4. Why the Unified Logging Layer Matters

Why the Unified Logging Layer Matters

Sadayuki Furuhashi user avatar by
Sadayuki Furuhashi
·
Mar. 28, 15 · Interview
Like (0)
Save
Tweet
Share
4.91K Views

Join the DZone community and get the full member experience.

Join For Free

Written by Kiyoto Tamura for Treasure Data.

The amount of logs produced today is staggering. The logs provide opportunities for analysis to better understand customers and continually improve products. The log collection pipeline, then, becomes a source of valuable data.

Collecting and unifying the data for better consumption and analysis can be a challenge. It is important to understand the nuances of collecting log data and how open source software such as Fluentd can meet requirements will improve the data pipeline challenges in the long term.

To demonstrate, consider these three fundamentals in how we should think about collecting log data.

1. Logs must be consumable for machines first, humans second.

Humans are good at parsing unstructured text but read very slowly, whereas machines are the exact opposite — they are terrible at guessing the hidden structure of unstructured text but read very, very quickly.

At the end of the day, humans also need to read the logs occasionally to perform sanity checks. For that reason, the log format should cater to both, with the primary focus on machine consumption first and humans second.

While several formats are strong candidates (Protocol Buffer, MessagePack, Thrift, etc.), JSON is a strong contender because it is easy to read for both machines and humans. This is one decided advantage that JSON has over binary alternatives like Protocol Buffer.

2. Logs require reliable transport.

Collecting log data presents a challenge: Logs need to be transported from where they are produced (mobile devices, sensors, or web servers) to where they can be archived cost-effectively (HDFS, Amazon S3, Google Cloud Storage, etc.) for analysis.

Transporting massive quantities of logs over network creates a technical challenge. At minimum, the transport mechanism must be able to cope with network failures and not lose any data. Ideally, it should be able to prevent data duplication. Achieving this “exactly once” scenario  is the holy grail of distributed computing.

3. Data inputs and outputs require ongoing attention and support

Today, collecting and storing logs is more complex than ever. On the data input side, increasingly more devices produce logs in a wide range of formats. On the data output side, developments in new databases or storage engines are frequently announced. Maintaining logging pipelines with so many data inputs and outputs is a challenge.

The Unified Logging Layer

I call the software system that meets the above three criteria the “Unified Logging Layer” (ULL). The ULL should be part of any modern logging infrastructure as it helps the organization to collect more logs faster, more reliably and scalably.

One implementation of the Unified Logging Layer is Fluentd, an open source project that Treasure Data sponsors and helps maintain.  Fluentd addresses each of the three requirements of the Unified Logging Layer:

  1. Fluentd uses JSON as the unifying format.
  2. Fluentd ensures reliable transport through file-based buffering and failover.
  3. Fluentd implements all inputs and output as easy-to-contribute plugins.

If you are interested in learning more about Unified Logging Layer and Fluentd, check out the  website and GitHub repository.

Data (computing) Open source Database Fluentd Software system Open-source software Machine JSON Pipeline (software)

Published at DZone with permission of Sadayuki Furuhashi, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Building With Open Policy Agent (OPA) for Better Policy as Code
  • Why the Industrial IoT World Needs Open Source to Innovate
  • JSON-Based Serialized LOB Pattern
  • Streaming in Mule

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: