Skip to content

Instantly share code, notes, and snippets.

@heukirne
Last active December 19, 2015 12:19
Show Gist options
  • Save heukirne/5954041 to your computer and use it in GitHub Desktop.
Save heukirne/5954041 to your computer and use it in GitHub Desktop.
./import_logs.py --url=localhost/piwik 20120827_access.log --idsite=1 --force-lowercase-path --log-format-regex="(?P<ip>\S+) \S+ \S+ \[(?P<date>.*?) (?P<timezone>.*?)\] \"\S+ (?P<path>.*?) \S+\" \"\S+ (?P<user_agent>.*?) \S+\" \"\S+ .* \S+\" (?P<status>\S+) (?P<length>\S+) (?P<generation_time_micro>\S+)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment