title: Collect NGINX access.log statistics to Prometheus
body: <p>There is nginx web server, that serves API calls from different User-Agents. I want to parse nginx logs and collect statistics about API calls from different User-Agents.</p>
  
  <p>I'm going to write python script to parse nginx <code>access.log</code> like this <a href="https://gist.github.com/sysdig-blog/22ef4c07714b1a34fe20dac11a80c4e2#file-prometheus-metrics-python-py" rel="nofollow noreferrer">https://gist.github.com/sysdig-blog/22ef4c07714b1a34fe20dac11a80c4e2#file-prometheus-metrics-python-py</a></p>
  
  <p>Is there more suitable solution?</p>