Parsing apache log files

前端 未结 6 937
你的背包
你的背包 2020-12-01 01:39

I just started learning Python and would like to read an Apache log file and put parts of each line into different lists.

line from the file

1

6条回答
  •  猫巷女王i
    2020-12-01 02:05

    import re
    
    
    HOST = r'^(?P.*?)'
    SPACE = r'\s'
    IDENTITY = r'\S+'
    USER = r'\S+'
    TIME = r'(?P

提交回复
热议问题