How to use mutate to flatten dataset

Hi there,

I am new to logstash. Please I need a little help transforming my dataset to a file so that it can be easy to query.

Data set:
{ "parent_id": "e4a085a9-0ec0-d4f4-0047-eab10eca4f79", "year": "2017", "month": "Jul", "day": "1", "doc": { "abcdef12-0ec0-d4f4-0047-eab10eca4f79.assessmentId": "abcdef12-0ec0-d4f4-0047-eab10eca4f79", "abcdef12-0ec0-d4f4-0047-eab10eca4f79.assessmentName": "Lesson Review ", "abcdef12-0ec0-d4f4-0047-eab10eca4f79.username": " mildred akinyi", "abcdef12-0ec0-d4f4-0047-eab10eca4f79.start_time": 1499064558217, "a5425e8f9e034cc5e44780a5e2000338.lesson_success": "Teacherfollowed the guide", "a5425e8f9e034cc5e44780a5e2000338.teacher_visit": "0", "a5425e8f9e034cc5e44780a5e2000338.teacher_talk": "9", "a5425e8f9e034cc5e44780a5e2000338.timestamp": 1499065466036 } }

Expected Result:
{ "parent_id": "e4a085a9-0ec0-d4f4-0047-eab10eca4f79", "year": "2017", "month": "Jul", "day": "1", "doc": { "assessmentId": "abcdef12-0ec0-d4f4-0047-eab10eca4f79", "assessmentName": "Lesson Review ", "username": " mildred akinyi", "start_time": 1499064558217, "lesson_success": "Teacherfollowed the guide", "teacher_visit": "0", "teacher_talk": "9", "timestamp": 1499065466036 } }

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