python parser windows firewall log - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: python parser windows firewall log (/thread-19836.html) |
python parser windows firewall log - Jonub - Jul-16-2019 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 |