Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: mrstarr on November 21, 2013, 02:08:16 AM

Title: Trying to redirect Apache Access Log to console - but "wall" command is missing
Post by: mrstarr on November 21, 2013, 02:08:16 AM
I want my microcore open terminal screen to show each hit on my webserver and from where on the current open console screen, as they occur in real time.... 

From this page: http://httpd.apache.org/docs/2.2/logs.html (http://httpd.apache.org/docs/2.2/logs.html)

"Apache httpd is capable of writing error and access log files through a pipe to another process, rather than directly to a file. This capability dramatically increases the flexibility of logging, without adding code to the main server. In order to write logs to a pipe, simply replace the filename with the pipe character "|", followed by the name of the executable which should accept log entries on its standard input.  Use "||" instead of "|" to spawn without invoking a shell:"

SO..., I thought I would pipe it to wall, which writes to all open consoles (and can be turned on off with mesg y/n...   by adding this addition to my httpd.conf:

    CustomLog "||wall" common


Problem...  tc barfs... "that there is no wall command installed"...   so I start App Browser installer with "ab" and search for "wall"...  or any package that might include it...    nothing found....

How do I get "wall" installed on my system, or is there a better way to do this?   I want to see every httpd hit on my dedicated microcore apache server as it occurs, and wall seemed the best way to go.

Title: Re: Trying to redirect Apache Access Log to console - but "wall" command is missing
Post by: Rich on November 21, 2013, 02:46:25 AM
Hi mrstarr
Quote
How do I get "wall" installed on my system ...
Try installing  util-linux.tcz
Title: Re: Trying to redirect Apache Access Log to console - but "wall" command is missing
Post by: curaga on November 21, 2013, 04:13:45 AM
Alternatively, use the normal log file, and one of the "file has changed" watchers (tail -f, tailf, inotify*...).
Title: Re: Trying to redirect Apache Access Log to console - but "wall" command is missing
Post by: mrstarr on November 21, 2013, 02:25:19 PM
I installed util-linux  "on demand", then typed "wall", and got nothing....   

The info for the package did not list anything it contained other than "a collection of misc. linux utilities.  Der...."   

Wikipedia, provided more insight:   http://en.wikipedia.org/wiki/Util-linux (http://en.wikipedia.org/wiki/Util-linux) and wall is not listed as included...

So.... where can I find... wall....? 

http://en.wikipedia.org/wiki/Wall_(Unix) (http://en.wikipedia.org/wiki/Wall_(Unix))
Title: Re: Trying to redirect Apache Access Log to console - but "wall" command is missing
Post by: gerald_clark on November 21, 2013, 02:31:46 PM
wall is in util-linux.
Title: Re: Trying to redirect Apache Access Log to console - but "wall" command is missing
Post by: Rich on November 21, 2013, 05:16:18 PM
Hi mrstarr
Trust me, it's in there. I don't think installing something  on demand  loads it. Try entering:
Code: [Select]
util-linuxThen try  wall  again.