Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 python parser windows firewall log
#1
Question 
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
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Syntax Error with Argument Parser aditya_man 1 189 Sep-30-2019, 01:21 PM
Last Post: ichabod801
  name 'get_config' is not defined, config parser zer0 1 1,089 Sep-06-2018, 09:00 PM
Last Post: Larz60+
  Recursive evaluation in parsley parser mqnc 0 943 Apr-13-2018, 09:02 PM
Last Post: mqnc

Forum Jump:


Users browsing this thread: 1 Guest(s)