LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Separating WPA logs from /var/log/messages using syslog-ng (https://www.linuxquestions.org/questions/linux-newbie-8/separating-wpa-logs-from-var-log-messages-using-syslog-ng-646731/)

lp449 06-03-2008 01:32 PM

Separating WPA logs from /var/log/messages using syslog-ng
 
Hello everyone :)

I was wondering maybe some of you would provide me some more complex help on the following topic... I use WPA TKIP (wpa_supplicant) to authenticate access to my wireless network and what I noticed recently is that my /var/log/messages get pretty messy because of that fact. It gets filled up with encrypt/decrypt info so that it is hard to find out anything else than that in that logfile.

I use syslog-ng as a system logger and was wondering what to add to a config file on order to make the messages of WPA separated from /var/log/messages and place that information in a different log file such as /var/log/wpa or something like that ... I think I should use some rexgrep but don't actually have an idea how to do so.

Any help would be greatly appreciated.

stress_junkie 06-04-2008 06:12 AM

I've been using UNIX and Linux for a long time and this issue took me a long time to figure out. In my defense I had other issues to study before this got to the top of my priority list. Other people may have a more accurate understanding of this. I will be watching this thread to see if I can learn more about this from other people's posts.

It looks to me that the syslog configuration is two level. The /etc/syslog.conf file is only good for managing groups of messages. These groups are expressed as name.severity such as kernel.critical. The second level comes from the configuration of the individual applications that create log messages. This is where you want to look to accomplish your goal. I have found that the configuration files for software that creates log messages will often contain a line or two saying how messages are to be handled. In general there is an option to send the messages to syslog with a label saying what group the messages belong to, and then there is another line saying what application specific file should be used for messages.

In your case you would want to find the configuration file for the WPA software and change its logging settings. You would want to stop sending messages to syslog and have the software maintain its own log file with whatever name you select.

I don't know the name of the configuration file that you need to change. I don't use wireless very much.


All times are GMT -5. The time now is 04:28 PM.