I need to take a linux log file and enter the data into a mysql table, and separate each field into columns. I have been trying to use the LOAD DATA INFILE command. Only problem is, the data is not delimited and I cannot TERMINATE FIELDS BY '' because the file includes spaces in the log message. If anyone has any idea please let me know
Example of file:
2011-01-17 10:18:20 User xxxxxx requested backup of xxxxx (xxxxx)
2011-01-17 10:18:29 Stopping current full of xxxxxx, request by backuppc (backoff=)
2011-01-17 10:18:33 User xxxxxx requested backup of xxxxxx (xxxxxx )
2011-01-17 10:18:51 Backup canceled on xxxxxx (received signal=ALRM)
2011-01-17 10:18:52 Started full backup on xxxxxx (pid=xxxxxx , share=xxxxxx$)
2011-01-17 10:24:18 Started full backup on xxxxxx (pid=xxxxxx , share=xxxxxx$)
2011-01-17 11:00:01 Next wakeup is 2011-01-17 12:00:01
2011-01-17 12:00:03 Next wakeup is 2011-01-17 13:00:00
2011-01-17 13:00:01 Next wakeup is 2011-01-17 14:00:00