Ucnt Posted September 4, 2014 Share Posted September 4, 2014 I know that the Karma log is temporarily stored at tmp/karma-phy0.tmp, but wanted to see if anyone knew what file managed the log file (i.e. that creates its input) so I can see about modifying it to add the date/time that the probe was received. grep'ing the string "Probe Request from" didn't come up with anything. My intent is: Have a couple of my Pineapples send their log files (with date/time stamp of each probe request) to a "sink" (i.e. data collection server) which will track a user by MAC address or, if the MAC address is being randomized, by its SSID set (e.g. "home-router123", "starbucks", "myoffice-router"). I can use the DTG of the log file transfer but I want to limit the number of times I transmit the log file and including it in the probe request log seems to be the easiest solution. Quote Link to comment Share on other sites More sharing options...
Sailor Posted September 4, 2014 Share Posted September 4, 2014 I know that the Karma log is temporarily stored at tmp/karma-phy0.tmp, but wanted to see if anyone knew what file managed the log file (i.e. that creates its input) so I can see about modifying it to add the date/time that the probe was received. grep'ing the string "Probe Request from" didn't come up with anything. It is most probably a binary, that is why you cannot find this. I managed to add a timestamp with the following command (read the log file, in this example I filter only the connects, and redirect to a new file). You can also redirect to a remote server, the sink as you call it. tail -f /tmp/karma-phy0.log | grep 'pass\|AP-STA-DISCONNECTED\|Successful' | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; }' >> /sd/karma.log Quote Link to comment Share on other sites More sharing options...
Ucnt Posted September 4, 2014 Author Share Posted September 4, 2014 I imagined that might be the case, but wanted to ask in case I was wrong. Thanks for the suggestion. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted September 4, 2014 Share Posted September 4, 2014 I don't understand, we already have timestamps present in the log. What firmware version are you running? Best regards, Sebkinne Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.