python - Parsing Apache log file into ipython notebook -


i'm new ipython , doing experiments following post.

http://nbviewer.ipython.org/urls/github.com/koldunovn/nk_public_notebooks/raw/master/apache_log.ipynb

in [10]: parsing log file in data dictionary not work. can please me figure out this?.

log_list = [] line in log:        try:           data = p.parse(line)        except:           sys.stderr.write("unable parse %s" % line)        data['%t'] = data['%t'][1:12]+' '+data['%t'][13:21]+' '+data['%t'][22:27]         log_list.append(data) 

could plese try point , let me know error code?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -