So you are saying if you were to use that tool and used the same example output as I am:
Master,_15,04/08/15 6:51,04/08/15 6:51,Access granted,Smith,Frank,550000002BD2B127,2nd Fl S2 Node,2ND FL OPEN OFFICE AREA,2ND FL - OPEN OFFICE AREA,236
And plug in your filter, you actually get something back?
The thing to remember is that the log above:
Code: Select all
Master,_15,04/08/15 6:51,04/08/15 6:51,Access granted,Smith,Frank,550000002BD2B127,2nd Fl S2 Node,2ND FL OPEN OFFICE AREA,2ND FL - OPEN OFFICE AREA,236
Is ultimately different than the log received after rsyslog sends it, because rsyslog will add 'syslog' data to the front of every log line it sends.
If you match the above pattern to:
Code: Select all
^%{DATA:Partition}[_,]+%{DATE_EU:date2} %{HOUR:hour2}:%{MINUTE:minute2},%{DATE_EU:date3} %{HOUR:hour3}:%{MINUTE:minute3},%{DATA:Description},%{DATA:LastName},%{DATA:FirstName},%{NOTSPACE:NodeUID},%{DATA:NodeName},%{DATA:Location},%{DATA:Reader},%{NUMBER:CardNumber}$
It will match as expected.
The issue is that after rsyslog parses and sends the .csv logs, you will end up with something like:
Code: Select all
<133>Apr 15 09:26:08 testserver csvsyslogout: Master,_15,04/08/15 6:51,04/08/15 6:51,Access granted,Smith,Frank,550000002BD2B127,2nd Fl S2 Node,2ND FL OPEN OFFICE AREA,2ND FL - OPEN OFFICE AREA,236
Which does match the full pattern:
Capture.PNG
The problem here is that the full *message* field of your .csv file is not showing up. I think that we should simplify your setup to find out why that might be. I suggest deleting all filters that you have in place, and leaving only your tcp input. After making this modification, what shows up in the 'message' field?
You do not have the required permissions to view the files attached to this post.