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

User: ':remote-user' does not show logged-in user but - #283

Open
khteh opened this issue Sep 7, 2023 · 0 comments
Open

User: ':remote-user' does not show logged-in user but - #283

khteh opened this issue Sep 7, 2023 · 0 comments

Comments

@khteh
Copy link

khteh commented Sep 7, 2023

I am using SPDY server for HTTP/2 for my React.JS / Next.JS application. Unfortunately this solution needs to use Express.JS and therefore this is what I do to have request logging:

    const format = json({
      IP: ':remote-addr',
      User: ':remote-user',
      Timestamp: ':date[clf]',
      Method: ':method',
      Path: ':url',
      Protocol: 'HTTP/:http-version',
      Status: ':status',
      ContentLength: ':res[content-length]',
      Referrer: ':referrer',
      Agent: ':user-agent',
      ResponseTime: ':response-time ms',
    })

The log shows that ALL users are -. How can I have the logged in user in that logging field?

@khteh khteh changed the title User: ':remote-user' does not show logged in user but - User: ':remote-user' does not show logged-in user but - Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant