Trying to make a log parser to push data to Elasticsearch