# Calendar month log comparison?

**URL:** <https://discuss.elastic.co/t/calendar-month-log-comparison/159576>\
**Category:** Kibana\
**Created:** [December 5, 2018, 5:13pm UTC](https://discuss.elastic.co/t/calendar-month-log-comparison/159576 "2018-12-05T17:13:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [December 5, 2018, 7:35pm UTC](https://discuss.elastic.co/t/calendar-month-log-comparison/159576/2 "2018-12-05T19:35:16Z")

</div>

Hello,

You should be able to provide a date filter when you create the visualization. To specify the last month, I believe you should be able to use: `now/M-1M` for the start of your range and `now/M` for the end of it. Provided you've enabled auto-refresh, that should give you what you need whenever you pull up the visualization.

Here are a few good links to help you out:

- [https://www.elastic.co/guide/en/kibana/current/autorefresh.html](https://www.elastic.co/guide/en/kibana/current/autorefresh.html)

- [https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#date-math](https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#date-math)

- [Several date math questions](https://discuss.elastic.co/t/several-date-math-questions/27453/5) (the range formats used here are useful)

Also, here's a quick screenshot of adding (editing in my case) a filter to your visualization in case you haven't tried this before:

 ![Screenshot%20from%202018-12-05%2012-27-40](https://us1.discourse-cdn.com/elastic/original/3X/f/a/fa17b8adc249c04e3f63e31211335f1349e5c295.png)

Regards,  
Aaron

---

_[View the full topic](https://discuss.elastic.co/t/calendar-month-log-comparison/159576)._
