Python Forum

Full Version: python parser windows firewall log
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello
Sorry if my english is not good
I have two questions

I want enable windows firewal log whith python
Control Panel\All Control Panel Items\Windows Firewall > Properties > public profile > loggin

After parser (pfirewall.log) log with csv
how to skip 4 first line
def pfirewall():
        import csv
        file = open ("C:\\Windows\\System32\\LogFiles\\Firewall\\pfirewall.log","r")
        reader = csv.DictReader(file,delimiter=" ")
        for line in reader :
                print(line)
thanks