|
Odyssey
|
Functions | |
| def | collect_and_log () |
| def | __create_es_connection__ () |
| def | search_es (es_conn) |
| def | extract_messages_from_results (results) |
| def | map_messages_into_bins (messages) |
| def | process_access_log_bins (bins) |
| def | write_access_log_file (filename, lines) |
Variables | |
| LOGGER = logging.getLogger(__name__) | |
| ELASTICSEARCH_URL = os.environ['ELASTICSEARCH_URL'] | |
| LOG_OUTPUT_DIR = os.environ.get('LOG_OUTPUT_DIR') | |
| UID = pwd.getpwnam('www-data').pw_uid | |
Collect web stats from elasticsearch for later parsing
| def web_stats.collect_and_log | ( | ) |
| def web_stats.extract_messages_from_results | ( | results | ) |
pull messages from es search results Returns a generator for results.
Definition at line 61 of file web_stats.py.
| def web_stats.map_messages_into_bins | ( | messages | ) |
| def web_stats.process_access_log_bins | ( | bins | ) |
process bins and write access logs
Definition at line 82 of file web_stats.py.
| def web_stats.search_es | ( | es_conn | ) |
| def web_stats.write_access_log_file | ( | filename, | |
| lines | |||
| ) |
Write out access log
Definition at line 91 of file web_stats.py.
1.8.15