From: <Joh...@ce...> - 2012-01-28 21:11:54
|
unfortunately, my system is located in North America, and the product creating this log (Axway SecureTransport) is incapable of outputting the date in other formats. I'm stuck with a hodge-podge of date formats on this system. _____________________________________________________________________________________________________ John Delisle | Sr Technical Analyst | Ceridian Canada Ltd. | ceridian.ca 400 ? 125 Garry Street | Winnipeg, MB R3C 3P2 | p: 204-975-5909 | joh...@ce... "Amir 'CG' Caspi" <ce...@3p...> 2012/01/28 12:15 PM To Yaroslav Halchenko <li...@on...>, fai...@li... cc Subject Re: [Fail2ban-users] Possible bug in fail2ban-regex? Yaroslav, Can't you check the locale to determine the proper date/time format? US formats are all MM-DD-YYYY. European might be DD-MM-YYYY although I'm not sure which locales support that setting. Either way, it should be possible to determine the proper format rather than guessing by looking at the current time. Just a thought. --- Amir At 12:09 PM -0500 01/28/2012, Yaroslav Halchenko wrote: >the situation is more intriguing -- finally I think it hits an issue of >disambiguating dates, e.g. for 01-02-2011 16:22:44.252 would it be Feb >01 or Jan 02? the easiest solution imho is just to take the one which >is closest to the current date/time > >so far there even were no pattern to match yours (only with %d-%m) >-- did it actually work for you on these log files before, or you just >tried it? > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Fail2ban-users mailing list Fai...@li... https://lists.sourceforge.net/lists/listinfo/fail2ban-users This communication is intended to be received only by the individual[s] or entity[s] to whom or to which it is addressed, and contains information which is confidential, privileged and subject to copyright. Any unauthorized use, copying, review or disclosure is prohibited. Please notify the sender immediately if you have received this communication in error [by calling collect, if necessary] so that we can arrange for its return at our expense. Thank you in advance for your anticipated assistance and cooperation. Cette communication est destinée uniquement à la personne ou à la personne morale à qui elle est adressée. Elle contient de l’information confidentielle, protégée par le secret professionnel et sujette à des droits d'auteurs. Toute utilisation, reproduction, consultation ou divulgation non autorisées sont interdites. Nous vous prions d’aviser immédiatement l’expéditeur si vous avez reçu cette communication par erreur (en appelant à frais virés, si nécessaire), afin que nous puissions prendre des dispositions pour en assurer le renvoi à nos frais. Nous vous remercions à l’avance de votre coopération. |