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

Windows logging issues #969

Open
1 of 2 tasks
mattgodbolt opened this issue Mar 18, 2023 · 3 comments
Open
1 of 2 tasks

Windows logging issues #969

mattgodbolt opened this issue Mar 18, 2023 · 3 comments

Comments

@mattgodbolt
Copy link
Member

mattgodbolt commented Mar 18, 2023

Some commentary on windows papertrail logging:

Mar 18 20:36:13Z EC2AMAZ-AMNTGCN amazonwin.winprod info: Listening on http://localhost:10240/

  • the "program" is logged as amazonwin.winprod - compared to just amazon for Linux. Would prefer either amazon.win or amazonwin but not prod at all (that's the default) and not win in both (in just one, ideally)
  • the machine address is always EC2AMAZ-AMNTGCN so it's impossible to click it in papertrail and look at just that machine's activity. Having a unique name/IP would be ideal so we can see events happening on a single instance.
@partouf
Copy link
Contributor

partouf commented Mar 19, 2023

Re 'not prod', I don't think that's possible

Re address, have tried to rename the "computername", but that requires a reboot, so that's not very useful. If we can somehow set a custom hostname for papertrail, then we can do it, because we do have the information here https://github.com/compiler-explorer/infra/blob/main/init/start.ps1#L14

@partouf
Copy link
Contributor

partouf commented Mar 30, 2023

Looks like you can customize the hostname https://www.npmjs.com/package/winston-papertrail-transport
Will see if we can arrange that with a setting

@partouf
Copy link
Contributor

partouf commented Mar 30, 2023

the papertrail hostname for win is now in line with the rest of our instances

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

2 participants