Do you get the same result?
python misc/log-analytics/import_logs.py ../test-log-file --url=http://localhost/piwik-master
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Parsing log ../test-log-file...
Fatal error: Cannot guess the logs format. Please give one using either the --log-format-name or --log-format-regex option
python misc/log-analytics/import_logs.py ../test-log-file --url=http://localhost/piwik-master
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Parsing log ../test-log-file...
Fatal error: Cannot guess the logs format. Please give one using either the --log-format-name or --log-format-regex option