Skip to content

Commit

Permalink
Merge pull request #65 from cdgraff/patch-1
Browse files Browse the repository at this point in the history
Thanks for the PR!
 Fixes #3233 adding support for Icecast2 HTTP logs format
  • Loading branch information
Matthieu Aubry committed Apr 25, 2013
2 parents ff0327c + fc3dcd3 commit c57e1af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions misc/log-analytics/import_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def check_format(self, file):
'\S+ \S+ \S+ \S+ "\S+ (?P<path>.*?) \S+" (?P<status>\S+) \S+ (?P<length>\S+) '
'\S+ \S+ \S+ "(?P<referrer>.*?)" "(?P<user_agent>.*?)"'
)
_ICECAST2_LOG_FORMAT = ( _NCSA_EXTENDED_LOG_FORMAT +
' (?P<session_time>\S+)'
)

FORMATS = {
'common': RegexFormat('common', _COMMON_LOG_FORMAT),
Expand All @@ -187,6 +190,7 @@ def check_format(self, file):
'common_complete': RegexFormat('common_complete', _HOST_PREFIX + _NCSA_EXTENDED_LOG_FORMAT),
'iis': IisFormat(),
's3': RegexFormat('s3', _S3_LOG_FORMAT),
'icecast2': RegexFormat('icecast2', _ICECAST2_LOG_FORMAT),
}


Expand Down

0 comments on commit c57e1af

Please sign in to comment.