User Tools

Site Tools


projects:wifi_scanner

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
projects:wifi_scanner [2020/01/06 17:23]
neil
projects:wifi_scanner [2020/01/06 23:31]
neil
Line 37: Line 37:
 </​code>​ </​code>​
  
-To import the log file I run:+These files are pretty large - for around a month of wifi scanning data is around 128.4 million lines of data (18.6Gb).  ​I run the following code to simplify the logs to just pairs of the datetime (in YYYY-MM-DD HH:MM) and the mac address: 
 <code bash> <code bash>
-php import.php tcpdump.log+php trim.php tcpdump.log > trimmed_tcpdump.log
 </​code>​ </​code>​
  
-Which runs this file (note, this is accurate ​to the minute, rather than the second, to save space)+This takes around 12 minutes which reduces the number of lines of data to around 20 million. ​ Then I import ​this directly ​to the mysql database using the mysql client
-<​code ​php+<​code ​sql
-tbd+load data infile '​trimmed_tcpdump.log'​ into table wifi_data;
 </​code>​ </​code>​
 +
 +If you have any trouble with this command, you might want to split the file into more managble parts using ''​split -l 1000000 trimmed_tcpdump.log''​
 +
 +==== trim.php ====
 +TBC
  
 ===== Analysing the data ===== ===== Analysing the data =====
projects/wifi_scanner.txt · Last modified: 2020/08/03 16:11 by admin