Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How do I check syslog-ng messages?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Thu Jul 17, 2008 2:55 am    Post subject: [Solved] How do I check syslog-ng messages? Reply with quote

I'm following the Gentoo Power Management Guide: http://www.gentoo.org/doc/en/power-management-guide.xml

It tells me to see if what I did is working by checking syslog messages:
Quote:

Give it a try: Plug AC in and out and watch syslog for the "Switching to AC mode" or "Switching to battery mode" messages. See the Troubleshooting section if the script is not able to detect the power source correctly.


I installed syslog-ng a while ago but I don't know where the logs are or how to check them to see if it's working.
Can anyone help me?

Thanks,
Lateralus01


Last edited by lateralus01 on Thu Jul 17, 2008 3:14 am; edited 1 time in total
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Thu Jul 17, 2008 3:04 am    Post subject: Reply with quote

Unless you've reconfigured syslog (and judging by your question, I'd say you haven't yet) the majority of system messages should be written to /var/log/messages. An ordinary user will not have permission to read this file because logs can divulge sensitive information about a system. You must become root to view it--again, unless/until you reconfigure syslog.

There's a lot of good information on this subject on the (unofficial) Gentoo Wiki.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Thu Jul 17, 2008 3:13 am    Post subject: Reply with quote

timeBandit wrote:
Unless you've reconfigured syslog (and judging by your question, I'd say you haven't yet) the majority of system messages should be written to /var/log/messages. An ordinary user will not have permission to read this file because logs can divulge sensitive information about a system. You must become root to view it--again, unless/until you reconfigure syslog.

There's a lot of good information on this subject on the (unofficial) Gentoo Wiki.


thanks timeBandit
Back to top
View user's profile Send private message
deathcon1
Apprentice
Apprentice


Joined: 30 Aug 2007
Posts: 182
Location: Canada

PostPosted: Thu Jul 17, 2008 4:58 pm    Post subject: Reply with quote

Another tip is this
Code:
tail -f /var/log/messages

Can be VERY useful if soemthing isn't behaving as expected.[/code]
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Jul 17, 2008 6:04 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
Not about getting gentoo installed, so moved here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum