Question
How can I do for to insert nginx log to mysql?
I want to insert my log file into a database like mysql This is un example of a log file that I have:
195.xx.x.x - - [13/Apr/2017:09:60:xx +0200] “POST /userx/index.php?m=contacts&xxxx…
192.xx.x.x - - [13/Apr/2017:09:45:xx +0200] "POST /userx/index.php?m=customer&xxxx…
197.xx.x.x - - [13/Apr/2017:09:10:xx +0200] "POST /userx/index.php?m=meeting&xxxx…
197.xx.x.x - - [13/Apr/2017:09:20:xx +0200] "POST /userx/index.php?m=dashboard&xxxx…
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×