I am trying to capture the mail.log file and parse it in Log Insight. Currently I have setup as below. How do i setup a parser for this.
To run awstats, the logfile format is LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
Can i do this in Log Insight?
Do you have the log insight agent installed on the server you are getting logs from? If so have you tried the Linux content pack I believe it covers mail.log as well as other Linux log files.
But if you like to parse it your self have a look at the log parser and how to configure it. It is possible to do.
Dont have an example at hand but look at the documentation -> Configure Log Parsers