# Corona Virus data

**URL:** <https://discuss.elastic.co/t/corona-virus-data/221535>\
**Category:** Logstash\
**Created:** [February 29, 2020, 7:50pm UTC](https://discuss.elastic.co/t/corona-virus-data/221535 "2020-02-29T19:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_wylde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rob_wylde/32/58231_2.png) [@Rob\_wylde](https://discuss.elastic.co/u/Rob_wylde)\
**Post date:** [February 29, 2020, 7:50pm UTC](https://discuss.elastic.co/t/corona-virus-data/221535/1 "2020-02-29T19:50:30Z")

</div>

So i'd like to try and generate a better dashboard within kibana to display the data that has been made available by john hopkins below are the link to that data.

[Time series](https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series) and [Github repo](https://github.com/CSSEGISandData)

Header looks like this  
`Province/State,Country/Region,Lat,Long,1/22/20,1/23/20,1/24/20,1/25/20,1/26/20,1/27/20,1/28/20,1/29/20,1/30/20,1/31/20,2/1/20,2/2/20,2/3/20,2/4/20,2/5/2 0,2/6/20,2/7/20,2/8/20,2/9/20,2/10/20,2/11/20,2/12/20,2/13/20,2/14/20,2/15/20,2/16/20,2/17/20,2/18/20,2/19/20,2/20/20,2/21/20,2/22/20,2/23/20,2/24/20,2/ 25/20,2/26/20,2/27/20`

The above csv files pose a challenge as the its the columns that have the date stamp. I'm not sure how i'd go about parsing this.

Things i've tried:  
autodetect\_column\_names =\> true .. which does not render the desired results.  
`{ "8" => "0", "Mainland China" => "Iraq", "@version" => "1", "157" => "0", "159" => "0", "@timestamp" => 2020-02-29T06:19:13.954Z, "tags" => [[0] "confirmed_ts" ], "40" => "0", "43" => "0", "117" => "0", "location" => { "lon" => "%{Long}", "lat" => "%{Lat}" }, "22" => "0", "4" => "0", "5" => "0", "19" => "0", "64" => "0", "46" => "0", "162" => "0", "106" => "0", "Hainan" => nil, "109.7453" => "44", "path" => "csse_covid_19_time_series/time_series_19-covid-Confirmed.csv", "19.1959" => "33", "163" => "0", "message" => ",Iraq,33,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,5,7\r", "80" => "0", "host" => "desktop", "99" => "0", "144" => "0", "168" => "7", "124" => "0", "52" => "0", "72" => "0", "138" => "0", "33" => "0", "131" => "0", "62" => "0" }`

I can't define the columns manually as the next day a new column will be added. I feel like a ruby expression is required here but I'm not sure. Any suggestions are welcomed.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 1, 2020, 2:33pm UTC](https://discuss.elastic.co/t/corona-virus-data/221535/2 "2020-03-01T14:33:04Z")

</div>

That looks like it has interpreted a data row as a header, that would indicate logstash has re-ordered rows. Make sure you have pipeline.workers set to 1 and disable [java\_execution](https://github.com/elastic/logstash/issues/10938).

---

<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 29, 2020, 2:33pm UTC](https://discuss.elastic.co/t/corona-virus-data/221535/3 "2020-03-29T14:33:04Z")

</div>

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