DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th January 2011
drummondislebsd drummondislebsd is offline
New User
 
Join Date: Nov 2010
Posts: 3
Default log file management

I would like to email /var/log/auth.log.n.bz2 log files to my personal email account for archiving and viewing.

Assuming there an easy way to do this from the root prompt, can someone share the syntax to accomplish this?
Reply With Quote
  #2   (View Single Post)  
Old 4th January 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

I posted a shell script called matts] at http://www.daemonforums.org/showthread.php?t=3480 which can send such a log as MIME attachment.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 5th January 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

You can also use mailx/heirloom-mailx
From memory you can use % mailx -s mysubject -a myattachment.gz mymail@example.com
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 5th January 2011
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

mail/biabam is also an option.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IP Security Policy Management snap-in wesley OpenBSD Security 2 11th August 2009 04:34 AM
Help with OpenSolaris package management roddierod Solaris 2 6th August 2008 03:11 PM
OpenVPN management bichumo General software and network 0 15th July 2008 09:05 AM
best package management method TerryP Off-Topic 9 18th June 2008 03:57 PM
bandwidth management problem... maurobottone OpenBSD Security 2 17th May 2008 08:10 AM


All times are GMT. The time now is 11:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick