I was trying to get linelog to log a CSV style log file with the Access Accept and Reject messages for auditing purposes.<br><br>Took a while to see that the "Access-Reject" verb doesn't work in the modules/linelog file, it only ever uses the Access-Request since all the requests are Access-Request messages. So I had to log the %{reply:Packet-Type}<br>
<br>So this is what I did in the end in the linelog module file:<br><br> Access-Request = "\"%S\",\"%{reply:Packet-Type}\",\"%{Packet-Src-IP-Address}\",\"%{NAS-IP-Address}\",\"%{Client-Shortname}\",\"%{User-Name}\""<br>
<br>Then I updated the post-auth section of the default file to include the linelog module in both the main and the Post-Auth-Type REJECT to log the Access-Reject messages too.<br><br>
<p class="MsoNormal">post-auth {</p>
<p class="MsoNormal"><b>
linelog</b></p>
<p class="MsoNormal">
Post-Auth-Type REJECT {</p><b>
linelog</b><br>
reject
<p class="MsoNormal">
}</p>
<br>And I get this in the linelog file.<br><br>
<p class="MsoNormal">"2012-03-06
20:40:02","Access-Accept","192.168.1.2","192.168.1.2","APP","Peter"</p>
<p class="MsoNormal">"2012-03-06
20:40:46","Access-Reject","192.168.1.2","192.168.1.2","APP","Peter"</p>
<br>Which is what we needed to have logged.<br><br>Hope it helps someone else.<br><br>Cheers<br><br>Peter<br>