Intel Corporation interview question

How would you about writing a script in Python to capture log files and storing it into SQL server