# Can't select data by time on time picker. See all data only

**URL:** <https://discuss.elastic.co/t/cant-select-data-by-time-on-time-picker-see-all-data-only/292771>\
**Category:** Kibana\
**Created:** [December 23, 2021, 7:14am UTC](https://discuss.elastic.co/t/cant-select-data-by-time-on-time-picker-see-all-data-only/292771 "2021-12-23T07:14:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://discuss.elastic.co/u/Alex_C)\
**Post date:** [December 23, 2021, 7:14am UTC](https://discuss.elastic.co/t/cant-select-data-by-time-on-time-picker-see-all-data-only/292771/1 "2021-12-23T07:14:23Z")

</div>

Hi.  
I use Kibana 7.16.1

I'm trying to analyze the log that comes from a CSV file (Windows File bat --\> Logstash --\> Elastic)  
There is a date and time of events in the log  
During processing in Logstash, I add this data to the @timestamp field so that the log entries are linked to the time they were created on the main host, and not to the time they were received in Logstash  
I use next code in Logstash filter

```auto
 mutate {
    add_field => {
        "1c00_timestamp" => "%{1c01_date} %{1c02_time}"
    }
    }
    date {
        match => ["1c00_timestamp", "YYYYMMdd HH:mm:ss"]
        target => "@timestamp"
    }

```

As a result, when I see the data in Kibana Discovery, they are not sorted by time automatically  
But this is not the worst thing (I can use manual sorting in Discovery, i know)

In most of my attempts to visualize this data, I can't get them to be selected by the time specified in the Time picker field  
For example, I create a TOP 5 graph for one of the fields, and I see data on the graph for the entire time, across the entire database, No matter what time interval I set in the Time Picker field

The only option when the data on the charts correspond to the selected time is if I create a Count @timestamps graph, then I see the number of records for the selected time period. If i Selected "TODAY" i see only today entries etc

Help me understand what I'm doing wrong?

I would like to get a graph of the TOP 5 records for a specific field from the log and choosing a time interval in the Time Piker field - analyze this data for choosed time period only, not for all database  
Is it possible?

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://discuss.elastic.co/u/Alex_C)\
**Post date:** [December 23, 2021, 8:24am UTC](https://discuss.elastic.co/t/cant-select-data-by-time-on-time-picker-see-all-data-only/292771/2 "2021-12-23T08:24:15Z")

</div>

Well...  
I understand everything  
When creating the Indexpattern, I simply forgot to specify the Timeframe, so the data was not tied to the time  
The topic can be closed

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 20, 2022, 8:25am UTC](https://discuss.elastic.co/t/cant-select-data-by-time-on-time-picker-see-all-data-only/292771/3 "2022-01-20T08:25:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
