previously is used log file to save data. Now I need to identify the variables which need to logged and save into sqlite database.Any idea on how to start?thanks
previously is used log file to save data. Now I need to identify the variables which need to logged and save into sqlite database.Any idea on how to start?thanks
You can import a comma seperated text file directly in sqllite, see http://www.sqlite.org/cvstrac/wiki?p=ImportingFiles. So the recipe would be to convert your logfile to a comma seperated file. Next create a table in sqllite with all the attributes of your log file, e.g. severity, date/time, source code line, error mesage. Finally import the logfile
computer-howto
Linux is not windows
Fluxbox & Flux menu how to
Programming is an art. Learn it, Live it, Love it!
Is it just identify the variable in the C file then create a table only to link it?Let say my C file got this variable as shown below:
struct HOST
{
char Src_MAC[18];
char Src_IP[16];
long int Cap_Bytes;
int TCP,UDP,ICMP,IP,ARP,OTH_Net, OTH_Trans; // Protocols
int ftp,ssh,telnet,domain,www,netbios,other; // Services
};
Bookmarks