Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pavlozt
pavlozt / main.tf
Created November 13, 2021 09:23
aws with elastic ip
terraform elastic ip
# like this https://mmas.github.io/read-apache-access-log-pandas
import pandas as pd
import io
logstring="""
sosiski.ru 37.140.192.84 - - [10/Aug/2020:03:15:14 +0300] "GET /api.html?ip= HTTP/1.0" 200 4897 "-" "-" 0.137 0.082 0.082
sosiski.ru 93.77.28.57 - - [15/Aug/2020:08:43:25 +0300] "GET //%103%10%02/%08?5++]5%FF%FF%BC%FF%E3%06 HTTP/1.1" 404 43364 "https://sosiski.ru/assets/CenturySchoolbook-Italic.ttf" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36" 0.140 0.140 0.137
sosiski.ru 93.77.28.57 - - [15/Aug/2020:08:43:25 +0300] "GET //%103%10%02/%08?5++]5%FF%FF%BC%FF%E3%06 HTTP/1.1" 404 43364 "https://sosiski.ru.ru/assets/CenturySchoolbook-Italic.ttf" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36" 0.124 0.124 0.121
"""