Commiting part 1 of the problem statement which involves parsing logs, b...

...uilding documents and indexing them into ES
Add this in a main() method and have a line at the bottom
if __name__ == '__main__':
    main()

This helps this module to be imported from other python modules and run the main. It need not be always run from the command line.