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

VRL: add main log format for parse_nginx_log #1201

Closed
virtualtam opened this issue Jan 2, 2025 · 0 comments · Fixed by #1202
Closed

VRL: add main log format for parse_nginx_log #1201

virtualtam opened this issue Jan 2, 2025 · 0 comments · Fixed by #1202
Labels
vrl: stdlib Changes to the standard library

Comments

@virtualtam
Copy link
Contributor

Use Cases

The parse_nginx_log function currently supports the following formats:

  • combined
  • error
  • ingress_nginx

The official Docker images for Nginx come with a default configuration file using the main format, defined as:

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

Reference

These configuration files are provided by the Nginx Linux Packages repositories, and the corresponding source packages are located in the pkg-oss repository:

Related work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vrl: stdlib Changes to the standard library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants