Menu

#32 Get Iptables Log Analyser with DATE working (i hope)

open-works-for-me
Feed_db (13)
9
2003-03-30
2003-03-30
romain
No

just add this 2 lines in the config section of feed_db.pl :

use POSIX qw(locale_h);
setlocale(LC_ALL, "en_US");

and that's all
and if you want to come back to your local time just
add this line at the end of feed_db.pl :

setlocale(LC_ALL, "fr_FR");

and just replace fr_FR by the value of your local time :
echo $LANG

i hope will help someone

Discussion

  • romain

    romain - 2003-03-30
    • labels: --> Feed_db
    • assigned_to: nobody --> gggard
     
  • romain

    romain - 2003-03-30
    • priority: 5 --> 9
    • summary: Get Ipatbles work with DATE for all system (i hope) --> Get Ipatbles Log Analyser with DATE working (i hope)
    • status: open --> open-works-for-me
     
  • romain

    romain - 2003-03-30
    • summary: Get Ipatbles Log Analyser with DATE working (i hope) --> Get Iptables Log Analyser with DATE working (i hope)
     
  • VODOZ Pierrick

    VODOZ Pierrick - 2003-04-10

    Logged In: YES
    user_id=754254

    Hello,
    I've just added the 2 lines in my feed_db.pl
    But there is no change. The SQL Database is fed, but for the
    column date, all datas are 0000-00-00 00:00:00. So there are
    no datas on the web Interface....

    Can anyone help me?
    Thanks

     

Log in to post a comment.

MongoDB Logo MongoDB