Martin,
As always, thx for the feedback.
Re: building a new sourcetype I'm trying to figure basically how to attack the building of. For example, when trying to break down a log file that has five unique formats, I'm in the "Set Sourcetype" screen in the Add Data process. To try and break down the file as much as I can, I loaded the file into Excel (it's not .csv or anything - used the 'Text to Columns' to help break it down) and minus the time, there are five standard columns, like below:
hostname sshd[17058]: [ID 800047 auth.notice]
hostname sshd[17058]: [ID 649047 auth.info]
hostname sshd[17058]: [ID 800047 auth.notice]
hostname sshd[17058]: [ID 649047 auth.info]
hostname sshd[17058]: [ID 800047 auth.notice]
hostname sshd[17058]: [ID 649047 auth.info]
hostname sshd[17058]: [ID 800047 auth.notice]
hostname sshd[17058]: [ID 649047 auth.info]
hostname sshd[17058]: [ID 800047 auth.notice]
hostname sshd[17061]: [ID 649047 auth.info]
hostname sshd[17061]: [ID 800047 auth.notice]
hostname sshd[17061]: [ID 649047 auth.info]
To the left of the first column above is the time, and to the right of the last column above is the generic text message of each event.
Could I create a regex for these standard columns, and then extract fields after the fact from the message text (IP, user name, etc.), or is there a better way to parse the file by modifying the props/transforms conf files?
Thx
... View more