LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-26-2007, 07:29 AM   #1
coal-fire-ice
Member
 
Registered: Nov 2004
Location: SE England
Distribution: Debian, SUSE, Ubuntu, Slackware
Posts: 147

Rep: Reputation: 15
output apache log directly to tty2


is it possible to output the log of apache to tty2 or any terminal

i am using apache 2.0.55
on ubuntu 6.10
 
Old 04-26-2007, 08:54 AM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Code:
*.*	/dev/tty12
kern.* /dev/tty10
Maybe I can start to answer your question, though this may only be a part of the whole solution.
The code I pasted here is from my /etc/syslog.conf file. It's purpose is to send ALL system messages on my machine to /tty12 and send all KERNEL messages to /tty10.
Working on the (possibly incorrect) assumption that Apache (log) output can also be trapped by the system log daemon, you could use a line similar to the above, but with *.apache /dev/tty2 or apache.* /dev/tty2
Hopefully it's as easy as that. If there's more to it, I would think it'd be a configuration issue in/with the Apache httpd.conf file.
Best of luck
 
Old 04-26-2007, 09:22 AM   #3
coal-fire-ice
Member
 
Registered: Nov 2004
Location: SE England
Distribution: Debian, SUSE, Ubuntu, Slackware
Posts: 147

Original Poster
Rep: Reputation: 15
thanks - i think that should do it - because the apache conf has the option to pass the log onto the system logs - which i presume is the system log deamon. in which case what you have suggested should work - so im gonna try that now - thankyou.
 
Old 04-26-2007, 05:14 PM   #4
coal-fire-ice
Member
 
Registered: Nov 2004
Location: SE England
Distribution: Debian, SUSE, Ubuntu, Slackware
Posts: 147

Original Poster
Rep: Reputation: 15
Thumbs up

having tried a few things previously in the apache configuration . eg putting tty2 in where the path of the log file was i realised that i had not been putting /dev/ in front of them and that in the conf file i could just literally put /dev/tty2 in the place of the log file.

thanks for your help because you put me onto that.
 
Old 04-26-2007, 06:48 PM   #5
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hey very cool and I learn something I didn't know too, for future reference!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
security holes in FC6 directly effecting a secure installation of apache tomcat jsbali Linux - Security 3 03-12-2007 04:26 PM
Redirect /dev/ttyS0 input/output to tty2 Kymbo Linux - General 1 09-07-2006 10:07 AM
micrphone output directly eduif Linux - Software 0 08-25-2004 11:22 AM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
Could I directly output a binary number? Xiangbuilder Programming 2 10-03-2003 08:27 AM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration