LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-27-2004, 10:12 PM   #1
Alstare
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
Outputting from syslog...


I'm trying to figure out how I can re-direct all instances of firewall data in my syslog to go to another file...

I want it to send every instance of this type to a file called /var/log/firewall.log

Code:
Nov 27 23:10:14 mugen kernel: firewall: IN=eth0 OUT=MAC=00:80:c8:dd:4b:23:00:09:12:82:70:70:08:00 SRC=60.35.57.61 DST=24.57.127.148 LEN=48 TOS=0x00 PREC=0x00 TTL=106 ID=62203 DF PROTO=TCP SPT=3669 DPT=5554 WINDOW=16384 RES=0x00 SYNURGP=22103

Also, I would like to output my portsentry instances to a file called /var/log/portsentry.log

Code:
Nov 27 05:44:20 mugen portsentry[1524]: attackalert: SYN/Normal scan from host: d57-127-148.home.cgocable.net/24.57.127.148 to TCP port: 620
What would I add to my /etc/syslog.conf to make it do this?

Currently I have a script that runs and grabs all the info and outputs it to those files in my crontab running every 5 mins, but this is not really an idea method.

Thanks for any help you can offer...

Last edited by Alstare; 11-27-2004 at 10:30 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble outputting to TV tradnbillies Linux - Hardware 0 10-09-2005 04:19 PM
Outputting the ARP table spud Programming 2 03-09-2005 09:38 AM
Cron is not outputting log files... Clubber Lang Linux - Newbie 2 09-27-2004 04:41 AM
reading a text file and outputting to another. Hardw1re Programming 28 11-03-2003 08:51 AM
DMESG is not outputting anything, how can I fix it? zLinuxz Linux - General 8 08-23-2003 01:10 AM


All times are GMT -5. The time now is 06:33 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
Open Source Consulting | Domain Registration