LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-16-2005, 10:05 AM   #1
meem
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
system logs in a table?


Hi,

I have a log file (/var/log/secure) that I would like to store in a database.

The aim is to build a small frontend that queries the data from the logfile, to build patterns of people that logged in, who did what to a file and so on.

First step though, id like to just append the data from there straight into a table (on an ongoing basis, as the log file gets more data)

The logfile looks like this

Mar 16 09:22:01 VRRP1 pure-ftpd: (user@host) ACTION
Mar 16 09:22:05 VRRP1 pure-ftpd: (user@host) ACTION
Mar 16 09:23:01 VRRP1 pure-ftpd: (user@host) ACTION
Mar 16 09:23:15 VRRP1 pure-ftpd: (user@host) ACTION

And all i want is the date/time, user@host, and action appended into an ever growing MySQL table.

Kind Regards
 
Old 03-17-2005, 11:48 AM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
This really belongs in programming, but to answer your question with a question -- Have you looked at the plethora of software that already exists to do this?

No point in re-inventing the wheel here ...
 
  


Reply



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
system logs: a better view. aquaboot Ubuntu 3 09-10-2005 11:56 AM
Where are the system logs? cereal83 Slackware 3 07-17-2004 01:55 PM
filtering system logs KingofBLASH Linux - Security 10 12-14-2003 04:59 PM
where are the system logs? juanb Linux - General 2 10-18-2003 08:33 AM
System Logs NSKL Linux - General 1 06-07-2002 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:53 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration