Mapping one field from csv file to two fields in elasticsearch template file

I have a title column in my csv file in the elastic search schema we defined two entities namely student and teacher both share this title field like student.title and teacher.title how can i specify this in logstash

I figured how to do this,

mutate {
add_field => {

                    "[student][title]" => "%{title}"

                    "[teacher][title]" => "%{title}"

            } 

}

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