Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable JSON Formatting and Customizable Schema for Lua Logs #11839

Open
andreufontb opened this issue Dec 17, 2024 · 0 comments
Open

Enable JSON Formatting and Customizable Schema for Lua Logs #11839

andreufontb opened this issue Dec 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@andreufontb
Copy link

Description

Summary

APISIX provides the ability to output logs from its internal Nginx component in JSON format with a customizable schema, which is incredibly useful for integration with log collection and analysis tools. However, logs generated by the Lua component do not currently support JSON formatting or schema customization.

This inconsistency complicates centralized log collection and parsing, as it requires maintaining separate parsers for Lua logs, adding complexity and operational overhead.

Proposal

  • Extend support for JSON-formatted logs to the Lua component.
  • Allow customization of the JSON schema for Lua logs, similar to the functionality provided by the Nginx component.

Benefits

Unified Logging: Consistent JSON formatting across all components (Nginx and Lua) would simplify log collection and analysis with systems like Elasticsearch, Loki, or Fluentd.

@dosubot dosubot bot added the enhancement New feature or request label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant