
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
KSystemLog is a system log viewer tool for KDE 4
This program is compatible with KDE 4 beta 3 libraries.
This program is developed for being used by beginner users, which don't know how to find information about their Linux system, and how the log files are in their computer. But it is also designed for advanced users, who want to quickly see problems occuring on their server.
KSystemLog has the following features :
* View all the main log of your system, by selecting them directly in a menu
* Tabbed view to allow displaying several logs at the same time
* Auto display new logged lines.
* Fast parsing and reading (more than 10000 lines each 5 seconds)
* Colorize log lines depending on their levels
* Detailed information for each log Lines (in a dedicated dialog)
* Quick filter
* Send a log message manually from a dialog box.
* Save, print and email log files are possible.
* It can parse the following log files of your system :
o System logs
o X.org logs
o Kernel logs
o Authentication logs
o Acpid logs
o Cups logs
o Postfix logs
o Apache logs
o Samba logs
o Daemons logs
o Cron logs
o XSession logs
o Cron logs
You can simply compile KSystemLog using the KDE 4 beta packages available in KUbuntu or other distributions.
13 years ago
Major improvements :
- Compatibility with KDE 4 beta4
- Fix icon position in search bar
- Add test coverage for Kernel logs
- Support for Suse Kernel logs
- Add joker to file list in configuration
- Auto-recognizition of the opened files
For more details, go to
http://ksystemlog.forum-software.org/changelog.php
13 years ago
Major improvements :
- Compatibility with KDE 4 beta4
- Fix icon position in search bar
- Add test coverage for Kernel logs
- Support for Suse Kernel logs
- Add joker to file list in configuration
- Auto-recognizition of the opened files
For more details, go to
http://ksystemlog.forum-software.org/changelog.php
lastnico
15 years ago
Report
jsakalos
15 years ago
somehow I cannot agree that user should see the system log. This opens a big security hole as system log CAN contain some sensitive information. Even passwords if root forgets to reset log level of a program after debugging.
Further, to install a graphics card of any other piece of hardware the root privileges are required.
Please, don't take Windows as a good security example as it is NOT secure.
User should and normally is able to read only logs like ~/.xsession-errors.
I would appreciate if .desktop file created during installation already contained "Run as root" so kdesu would always start.
Jozef
Report
pdreker
15 years ago
On a server the normal users should not be able to view the logs, and thus root needs to tie down the permissions. No app is going to change that point.
On a desktop the normal user usually also is root. So no problem here, if that normal user is able to check the logfiles.
My point being: The file permissions define, who is able to see the logs and who isn't, not some app. If ksystemlog can read the logs as a normal user, so can "less" in a shell.
Report
lastnico
15 years ago
Today, Linux is also on simple machine, with 1 main user (which is also the root), and satellite user, like your wife, or your children.
Of course, KSystemLog is useful for this two cases : the administrator in the 1/ and the poweruser in the 2/
The fact that KSystemLog exists will not automagically change the rights of your log files, so KSystemLog is not the problem here. KSystemLog is only a way to display finely log files of your system, only if you have the rights to read them.
I have plan with neoclust to add the kdesu feature (1 line modified in .desktop file), but as you said, log files in user home are also interested, and maybe will be parsed by KSystemLog a day, so I'm not sure to always keep this kdesu, and it's not a problem.
Report
kanotixfan
15 years ago
Report
blaster999
15 years ago
When I launch it (as root, to be able to read /var/log/messages), it eats ALL my memory. First RAM, then swap, and then my computer becomes unresponsive at all (when kernel tries to find something to kill I think). It also uses 100% CPU. I don't know what's causing it, but it's not good at all. If you need further info (KDE version or kernel version or something) just ask.
Report
lastnico
15 years ago
Can you send me your system log files ?
If you can't send me, please just send a part of them, or something which always makes KSystemLog consuming too much memory.
This problem can have 2 reasons :
- Strange characters in this file (aargh, I have to manage this $*-(%? characters!)
- A bug in KSystemLog (it will be not so strange ;-)
Sorry for this problem ;-(
Report
XamDM
15 years ago
keep up the good work
Xam
Report
kanotixfan
15 years ago
Report
gigi
15 years ago
Report
cado
15 years ago
KsystemLog 0.3 available on Debian at http://pacotesdeb.codigolivre.org.br
Requeriments:
KDE 3.4.1
Report
vdboor
15 years ago
I think it has a lot of potential. It still has room for improvement, e.g:
- detect and mark common errors
- explain standard messages
- parse common lines, like iptable/cron/auth lines
- parse distro-stuff like SuSE's SFW2-* prefixes for iptables.
- detect log files automatically
In other words: make sure log files can be read efficiently and errors can be spotted quickly (like sysadmins can in the Windows 2000 event log) :-) I wish I could help you, but I have another project running myself.
One other thing: the process column often shows stuff like cron[435] cron [14412], etc... Could you detect this "thread identifier"?
Report
lastnico
15 years ago
- detect and mark common errors
This will be done by a plugin management (certainly with KJSEmbed), user will be able to add "detector" scripts, which will popup messages if some specials lines are discovered (ex: nvidia proprietary loading failed...)
- explain standard messages
I think this will be done in the same way than your previous request
- parse common lines, like iptable/cron/auth lines
Cron and Auth are already done, but IPtables is in the TODO list
- parse distro-stuff like SuSE's SFW2-* prefixes for iptables.
Yes, of course, I add it to my TODO-list
- detect log files automatically
Planned to the next version.
One other thing: the process column often shows stuff like cron[435] cron [14412], etc... Could you detect this "thread identifier"?
Yes I can detect it, but I'm not sure to want to add a special column for this because it seems that only Cron process use this kind of special thing.
Do not hesitate to comment my answer ;-)
Report
vdboor
15 years ago
> I'm not sure to want to add a
> special column for this because
Well, why add another column for it? Could you ignore/remove the [num] part?
> it seems that only Cron process
> use this kind of special thing.
At my system, gpm, nmbd, sshd, xinetd, kdm_config, hotway seam to do the same thing. I believe the number just represents the process/thread number the event was fired from. That's why I think this information can be ignored in a "aggegrator" kind-of-thing like KSystemLog is.
Report
lastnico
15 years ago
Thanks for this idea!
Report
amdfanatyk
15 years ago
ksystemlog.h:168: error: `class KAction::ActivationReason' has not been declared
ksystemlog.h:168: error: ISO C++ forbids declaration of `reason' with no type
ksystemlog.h: In constructor `KSystemLog::KSystemLog()':
ksystemlog.h:306: warning: `KSystemLog::findDialog' will be initialized after
ksystemlog.h:285: warning: `KFind*KSystemLog::findManager'
ksystemlog.cpp:93: warning: when initialized here
ksystemlog.h:316: warning: `KSystemLog::loadingDialog' will be initialized after
ksystemlog.h:296: warning: `LogListItem*KSystemLog::previousItemFound'
ksystemlog.cpp:93: warning: when initialized here
ksystemlog.cpp: At global scope:
ksystemlog.cpp:1142: error: variable or field `slotLogAction' declared void
ksystemlog.cpp:1142: error: `int KSystemLog::slotLogAction' is not a static member of `class KSystemLog'
ksystemlog.cpp:1142: error: `ActivationReason' is not a member of `KAction'
ksystemlog.cpp:1142: error: expected primary-expression before "state"
ksystemlog.cpp:1142: error: initializer expression list treated as compound expression
ksystemlog.cpp:1142: error: expected `,' or `;' before '{' token
ksystemlog.cpp: In member function `void KSystemLog::groupByChanged(int)':
ksystemlog.cpp:1641: warning: comparison between signed and unsigned integer expressions
ksystemlog.cpp: In member function `void KSystemLog::updateGroupBy()':
ksystemlog.cpp:1711: warning: comparison between signed and unsigned integer expressions
In file included from ksystemlog.cpp:1833:
ksystemlog.moc: In member function `virtual bool KSystemLog::qt_invoke(int, QUObject*)':
ksystemlog.moc:227: error: `ActivationReason' is not a member of `KAction'
ksystemlog.moc:227: error: `ActivationReason' is not a member of `KAction'
ksystemlog.moc:227: error: expected primary-expression before ')' token
ksystemlog.moc:227: error: expected `)' before "static_QUType_ptr"
ksystemlog.cpp: At global scope:
ksystemlog.cpp:802: warning: unused parameter 'text'
ksystemlog.cpp:802: warning: unused parameter 'matchingIndex'
ksystemlog.cpp:802: warning: unused parameter 'matchingLength'
make[2]: *** [ksystemlog.o] Błąd 1
make[2]: Leaving directory `/home/amdfanatyk/Desktop/nk/ksystemlog-0.3/src'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/amdfanatyk/Desktop/nk/ksystemlog-0.3'
make: *** [all] Błąd 2
Report
lastnico
15 years ago
Sorry for this problem, I try to fix it ASAP...
Report
maarizwan
15 years ago
Report
lastnico
15 years ago
Thanks to like KSystemLog.
Report
gnemmi
15 years ago
KDE 3.3.2
QT 3.3.3
ksystemlog.h: En constructor `KSystemLog::KSystemLog()':
ksystemlog.h:306: aviso: `KSystemLog::findDialog' will be initialized after
ksystemlog.h:285: aviso: `KFind*KSystemLog::findManager'
ksystemlog.cpp:93: aviso: when initialized here
ksystemlog.h:316: aviso: `KSystemLog::loadingDialog' will be initialized after
ksystemlog.h:296: aviso: `LogListItem*KSystemLog::previousItemFound'
ksystemlog.cpp:93: aviso: when initialized here
ksystemlog.cpp: En la función miembro `void KSystemLog::highlightSearch(const
QString&, int, int)':
ksystemlog.cpp:802: aviso: unused parameter `const QString&text'
ksystemlog.cpp:802: aviso: unused parameter `int matchingIndex'
ksystemlog.cpp:802: aviso: unused parameter `int matchingLength'
ksystemlog.cpp: At global scope:
ksystemlog.cpp:1142: error: `ActivationReason' is not a member of type `KAction
'
ksystemlog.cpp:1142: error: error de decodificación before `,' token
ksystemlog.cpp: En member function `void KSystemLog::slotLogAction(...)':
ksystemlog.cpp:1161: error: `state' undeclared (first use this function)
ksystemlog.cpp:1161: error: (Each undeclared identifier is reported only once
for each function it appears in.)
ksystemlog.cpp: En member function `void KSystemLog::groupByChanged(int)':
ksystemlog.cpp:1641: aviso: comparison between signed and unsigned integer
expressions
ksystemlog.cpp: En member function `void KSystemLog::updateGroupBy()':
ksystemlog.cpp:1711: aviso: comparison between signed and unsigned integer
expressions
In file included from ksystemlog.cpp:1833:
ksystemlog.moc: En member function `virtual bool KSystemLog::qt_invoke(int,
QUObject*)':
ksystemlog.moc:227: error: `ActivationReason' is not a member of type `KAction'
ksystemlog.moc:227: error: `ActivationReason' is not a member of type `KAction'
ksystemlog.moc:227: error: error de decodificación before `)' token
ksystemlog.moc:227: error: error de decodificación before `)' token
make[2]: *** [ksystemlog.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[2]: Leaving directory `/home/gnemmi/paquetes/ksystemlog/BUILD/ksystemlog-0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gnemmi/paquetes/ksystemlog/BUILD/ksystemlog-0.3'
make: *** [all] Error 2
see ya
Report
lastnico
15 years ago
Thanks for reporting!
Report
lastnico
15 years ago
could you translate this log in english please, because I don't understand your language ;-)
Thanks!
Report
amdfanatyk
15 years ago
after logs reload:
[bash output]
QDate::setYMD: Invalid date 2005-01-00
failed to read() from server connection
KCrash: Application 'ksystemlog' crashing...
[/bash output]
crash ... bye bye ... ;(
Report
amdfanatyk
15 years ago
Report
lastnico
15 years ago
++
Report