PDA

View Full Version : [BSD] Log viewer looking for wrong Exim files



Daredevil
10-24-2004, 07:09 PM
Under BSD(FreeBSD 4.10) the exim log files can be found at /var/log/exim/exim_(filename), but the Log Viewer looks for the files at /var/log/exim/(filename) - and since they aren't there it errors, kinda ugly if you ask me ;).

One can always fix the "problem" by creating a simple symbolic-link., but that just isn't as neat as a simple code-editing.

jmstacey
10-24-2004, 10:19 PM
I also noticed that, but didn't get around to posting.
Same problem here, same version.

DirectAdmin Support
10-24-2004, 11:38 PM
Hello,

I believe all our current version of exim use the regular "mainlog" file, so I assume you're using an older version?

You can change the logfile path in the logs.list file:

cd /usr/local/directadmin/data/templates
cp logs.list custom

edit the custom/logs.list file to suite your needs. Add/remove any files that you need.

John

Daredevil
10-25-2004, 12:05 AM
An older version John ? err. you lost me ;).

There is no older version of 4.10 :P, I'm having the same problems on two boxes -

I'll setup a testing system later this day, to see what happens.



Might be me, who knows

jmstacey
10-25-2004, 12:25 AM
Running exim 4.43 here, latest version I think. I tried to check but the file server is missing a lot of files such as exim.

Ading the exim_ portion to the template as you have above did fix the problem, but since I am using the latest version......

Chrysalis
10-25-2004, 04:49 AM
I use freebsd myself and the logs are named correctly, but I am wondering do they get cycled as my mainlog is currently 3.7MB in size.

nobaloney
10-25-2004, 07:31 AM
In linux/unix logs get rotated based on settings in the logrotate.d directory.

Perhaps your settings for /etc/logrotate.d/exim aren't what they should be?

Jeff

jmstacey
10-25-2004, 08:32 AM
Ok. I deleted the log files completely and restarted exim to recreate the logs and it did the same thing with the preceding exim_ infront of the names.

I am using the latest version of exim as well as the configuration that was provided from the file server.

Daredevil
10-25-2004, 10:26 AM
I keep having the same problem on a freshly installed box.

- base FreeBSD 4.10(miniinst, but that shouldn't be the problem)
- ran cvsup for sources/ports
- kernel update(with quotas)
- fetch www.directadmin.com/setup.sh; chmod +x setup.sh; ./setup.sh

Ermm, yeh :)

Chrysalis
10-25-2004, 04:46 PM
jlasman /etc/logrotate.d doesnt exist but I know fbsd uses newsyslog.conf which has a crontab entry for cycling logs but directadmin hasnt added any entries for it, I dont want to start adding entries to cycle the logs tho as it may break how DA works, could you please tell me what cycle yours cycles (daily?)

thanks.

then I can set it and send the added lines to directadmin developers.

nobaloney
10-26-2004, 09:53 AM
Originally posted by Chrysalis
/etc/logrotate.d doesnt exist but I know fbsd uses newsyslog.conf which has a crontab entry for cycling logs
Yes, I always forget about the difference between BSD and linux; it's been a while since I've used BSD based unix distributions regularly.

but directadmin hasnt added any entries for it, I dont want to start adding entries to cycle the logs tho as it may break how DA works, could you please tell me what cycle yours cycles (daily?)
It doesn't matter how often you rotate exim logs; but it may make a difference as to what you can see.

/etc/logrotate.conf determins how often logs get rotated; on my RHL installs they rotated every week for a total of four weeks. On our systems we save space by telling the rotate system to compress all logs except the current one, as it does the rotating.

Jeff

Chrysalis
10-26-2004, 01:36 PM
ok so rotating it wont affect traffic usage measurements or anything?

nobaloney
10-26-2004, 02:26 PM
I don't think so.

But I admit I'm not positive.

We rotate once weekly, which is the DA default.

Jeff

Jing
11-01-2004, 08:38 PM
Same problems over here as well.

FreeBSD 5.2.1 and EXIM 4.24.

Maybe you can specify the older versions that is uncompatible so that I know if my EXIM is the problem or not?

anyway, this logviewer is a lovely feature!

Chrysalis
11-02-2004, 09:07 AM
This problem I think is linked to the www traffic logs not been rotated problem.

jmstacey
11-02-2004, 06:46 PM
Originally posted by Chrysalis
This problem I think is linked to the www traffic logs not been rotated problem.

How so? DA looking for log files with different names, interesting.

Chrysalis
11-03-2004, 08:39 AM
I am talking about the non rotation of the files, eg. my exim log file names are the correct name but they have never been rotated since the day I installed directadmin, I wonder if they ever get rotated will the new filename be correct.

Of course my www log files also never get rotated, unless I force a rotation by setting the rotation size to small.