Apache Log Visualization with Matplotlib : Learn Data Science

A
This post discusses Apache log visualization with Matplotlib library. First, download the data file used in this example [hide_from_apps container="span"]from here.[/hide_from_apps][show_only_in_apps]from here.[/show_only_in_apps] We will require numpy and matplotlib In [1]: import numpy as np import matplotlib.pyplot as plt numpy.loadtext() can directly load a text file in an array requests-idevji.txt contains only hour on which request was made, this is achieved by pre-prcoessing the Apache log. In [2]: data = np.loadtxt ('requests-idevji.txt') We need 24 bins because we have 24 hours' data. For other attributes of hist() see reference
Subscribe or log in to read the rest of this content.

About the author

Devji Chhanga

I teach computer science at university of Kutch since 2011, Kutch is the western most district of India. At iDevji, I share tech stories that excite me. You will love reading the blog if you too believe in the disruptive power of technology. Some stories are purely technical while others can involve empathetical approach to problem solving using technology.

1 Comment

Leave a Reply to Akshay Thacker Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Devji Chhanga

I teach computer science at university of Kutch since 2011, Kutch is the western most district of India. At iDevji, I share tech stories that excite me. You will love reading the blog if you too believe in the disruptive power of technology. Some stories are purely technical while others can involve empathetical approach to problem solving using technology.

Get in touch

Quickly communicate covalent niche markets for maintainable sources. Collaboratively harness resource sucking experiences whereas cost effective meta-services.