# How to create a timeline

**URL:** <https://discuss.elastic.co/t/how-to-create-a-timeline/296969>\
**Category:** Kibana\
**Created:** [February 11, 2022, 11:34am UTC](https://discuss.elastic.co/t/how-to-create-a-timeline/296969 "2022-02-11T11:34:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Celal\_Celik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/celal_celik/32/96397_2.png) [@Celal\_Celik](https://discuss.elastic.co/u/Celal_Celik)\
**Post date:** [February 11, 2022, 11:34am UTC](https://discuss.elastic.co/t/how-to-create-a-timeline/296969/1 "2022-02-11T11:34:46Z")

</div>

Hello Community,  
I have a question regarding updating data. I wrote a script in Python to create a random csv file. The CSV file contains: \_id, name, status and date.  
Now here is my Question: If I have a lane e.g.  
id; name; status; date  
1; Project A; failed; 2022-02-10

now the project is in the next step and "failed" changes to "passed"

1;Project A; passed; 2022-02-11

How can I index the data to create a timeline to see how long it takes to change a "status"(solve a problem ticket)

Here is my mapping:

```auto
       Settings = {
            "settings": {
                "number_of_shards": 1,
                "number_of_replicas": 2
            },
            "mappings": {
                "_id": {
                    "type": "long"
                },
                "properties": {
                    "name": {
                        "type": "text"
                    },
                    "status": {
                        "type": "text"
                    },
                    "time": {
                        "type": "date"
                    }
                }
            }
        }

```

Thx

---

<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:** [March 11, 2022, 11:35am UTC](https://discuss.elastic.co/t/how-to-create-a-timeline/296969/2 "2022-03-11T11:35:06Z")

</div>

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