printing the number of times an attack occured each day from a syslog file using python
<p>I've got a syslog file named <code>auth</code> and I would like to print out the number of times an attack has occurred each day.</p>

<p>I'm under the impression that the date is the key to achieving this. I'm considering inserting one date (Jan 08) for each time an attack has occurred on that day into the dictionary and then repeating this process for consecutive days, followed by a few simple <code>if</code> statements to display the days + count.</p>

<p>Is that the right way of approaching this?</p>
