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

[enh] Display other system logs #777

Open
wants to merge 1 commit into
base: stretch-unstable
from

Conversation

@zamentur
Copy link
Contributor

commented Aug 15, 2019

The problem

Some system log are not available in web admin

Solution

This PR add this log in Tools > Log like it was designed during the Log PR.
system_logs

PR Status

Ready
This PR depends of an other on yunohost-admin YunoHost/yunohost-admin#255

How to test

We need to merge this in unstable to test completely, but you can test like this:

  • Pull branch on yunohost and yunohost-admin
  • use git on yunohost and yunohost-admin
  • cp -R yunohost/data/other/logs/* /var/log/yunohost/categories/
  • service yunohost-admin
  • Try to use the webadmin to see the new log in screenshot

Validation

  • Principle agreement 0/2 :
  • Quick review 0/1 :
  • Simple test 0/1 :
  • Deep review 0/1 :
@alexAubin
Copy link
Member

left a comment

Could we also have other logs that are regularly relevant such as :

  • /var/log/daemon.log, typically the right place to look into half of the time when a service fails to start
  • maybe /var/log/debug but I'm not sure about what it really contains
  • /var/log/mail.* ?
@@ -0,0 +1 @@
log_path: /var/log/alternatives.log

This comment has been minimized.

Copy link
@alexAubin

alexAubin Aug 18, 2019

Member

Uh wokay ... I'm not sure that this file really is any useful ? Can you elaborate on what kind of insight it provides ?

This comment has been minimized.

Copy link
@zamentur

zamentur Aug 18, 2019

Author Contributor

Could be usefull in some situation with malicious programs running as default programs.
Maybe also to debug some php version conflict see https://github.com/YunoHost-Apps/framaforms_ynh/blob/testing/scripts/install#L191 .

@@ -0,0 +1 @@
log_path: /var/log/dpkg.log

This comment has been minimized.

Copy link
@alexAubin

alexAubin Aug 18, 2019

Member

Same as alternatives.log, I'm not sure what we're expecting to find in this file 😕

This comment has been minimized.

Copy link
@zamentur

zamentur Aug 18, 2019

Author Contributor

dpkg provide all manually dpkg packages installed, it could be usefull with some apps installing manually some dpkg.

@@ -0,0 +1 @@
log_path: /var/log/apt/history.log

This comment has been minimized.

Copy link
@alexAubin

alexAubin Aug 18, 2019

Member

Can we add also term.log which is really the actual log of apt operations ?

This comment has been minimized.

Copy link
@zamentur

zamentur Aug 18, 2019

Author Contributor

Good idea

@@ -0,0 +1 @@
log_path: /var/log/kern.log

This comment has been minimized.

Copy link
@alexAubin

alexAubin Aug 18, 2019

Member

It sounds like kern.log is just a subset of messages so I would choose one or the other (messages.yml apriori)

"log_kernel": "Information and events about the linux kernel",
"log_messages": "General system activities",
"log_root_bash_history": "History of commands ran by root",
"log_wtmp": "Login and logout history",

This comment has been minimized.

Copy link
@alexAubin

alexAubin Aug 18, 2019

Member

Apparently there's no wtmp configured...?

This comment has been minimized.

Copy link
@zamentur

zamentur Aug 18, 2019

Author Contributor

yep i removed it because this file make a big 500 error in moulinette and is not so much relevant

"log_admin_bash_history": "History of commands ran by admin",
"log_alternatives": "Change to default programs",
"log_auth": "Connection history",
"log_btmp": "Failed login attempts",

This comment has been minimized.

Copy link
@alexAubin

alexAubin Aug 18, 2019

Member

Apparently there's no btmp configured...?

"log_btmp": "Failed login attempts",
"log_dpkg": "History of installed debian packages",
"log_fail2ban": "Banning history",
"log_history": "History of installed debian packages with apt",

This comment has been minimized.

Copy link
@alexAubin

alexAubin Aug 18, 2019

Member

Well uh, is this for apt, or is this the category for the admin/root history ..? Shouldn't this be log_package ..?

Also I would really rename the package category to apt_and_dpkg or just apt or system_packages to make a clear distinction to apps or other packages

@alexAubin alexAubin added this to the 3.8.x milestone Sep 1, 2019

@zamentur

This comment has been minimized.

Copy link
Contributor Author

commented Sep 16, 2019

About this PR. We discuss it and Aleks think it should be transform into conf files store into /etc/yunohost . So it make it quite more difficult to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.