exporting ubuntu logs

Asked by harry potter

we are doing exporting the logs option in windows. How can we do the same for exporting the ubuntu security logs ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu syslog-ng Edit question
Assignee:
No assignee Edit question
Solved by:
J. Austin Rodriguez
Solved:
Last query:
Last reply:
Revision history for this message
enubuntu (mr.tennents) said :
#1

You can find the log in
/var/log

Your question is not clear to me at all..

Revision history for this message
harry potter (harry123great) said :
#2

I just want the contents /var/log/messages to be written to a text file so that I will be able to store it into a database.
I also want to know about storing those logs to MySQL database. How can I differentiate between the columns in that log file to make it into form suitable for storing into the database.

Revision history for this message
delance (olivier-delance) said :
#3

I don't understand. Messages are logged to text file.
If you search on Google, you should be able to find free software to manage logs.
The log system on Java is same as on Linux, so you can also search Java resources.

Revision history for this message
Best J. Austin Rodriguez (jeanaustinr) said :
#4

You can export log or results by adding '> filename.txt' to the command you are trying to execute. The '>' creates a file and puts the results there.

As for storing the logs to MySQL database, I'm no expert in that field but you can check out this page http://en.tiagomarques.info/2011/03/rsyslog-config-in-ubuntu-10-10/

Hope that helps

Revision history for this message
marcus aurelius (adbiz) said :
#5

log files in linux are in ascii/text format by default so there is no exporting, as you call it, involved.

Revision history for this message
harry potter (harry123great) said :
#6

my doubts got cleared

Revision history for this message
harry potter (harry123great) said :
#7

Thanks JeanAustinR, that solved my question.