# Need the steps to Index and mapping the unstructured log file and show the expected fields properly in kibana

**URL:** <https://discuss.elastic.co/t/need-the-steps-to-index-and-mapping-the-unstructured-log-file-and-show-the-expected-fields-properly-in-kibana/127236>\
**Category:** Elasticsearch\
**Created:** [April 9, 2018, 2:36am UTC](https://discuss.elastic.co/t/need-the-steps-to-index-and-mapping-the-unstructured-log-file-and-show-the-expected-fields-properly-in-kibana/127236 "2018-04-09T02:36:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakeshroshan](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rakeshroshan](https://discuss.elastic.co/u/rakeshroshan)\
**Post date:** [April 9, 2018, 2:36am UTC](https://discuss.elastic.co/t/need-the-steps-to-index-and-mapping-the-unstructured-log-file-and-show-the-expected-fields-properly-in-kibana/127236/1 "2018-04-09T02:36:56Z")

</div>

I need to seperate the field values correctly, to display it in the kibana. I want to parse the unstructured log file. So i came to know with the help of Index and mapping it is possible. But i don't kow to Index and mapping to the file properly. Could you please tell the steps how to mapping and index ?

For Example Server.log file is present. I want to Index and mapping the file correctly. The lines below are in this server.log.

2018-03-13 01:32:54 INFO UserController:96 - Login User from SSO session :com.emc.imap.model.User@2bf26620[emailID=Neha.Maharudra@emc.com,role=,userID=maharn,Neha,Maharudra,]  
2018-03-13 01:32:54 INFO UserServiceImpl:109 - method: setUserToken  
message: Start:

Expected O/P:

1st Row :  
Date - 2018-03-13 01:32:54  
log - INFO  
Action - Login User from SSO session  
message - UserController:96  
sessionValue - com.emc.imap.model.User@2bf26620  
emailID- [Neha.Maharudra@emc.com](mailto:Neha.Maharudra@emc.com)  
userid - maharn,Neha,Maharudra

2nd Row :  
Date - 2018-03-13 01:32:54  
log - INFO  
Action - UserServiceImpl:109  
Method Name - method: setUserToken  
Action - message: Start

So this is the expectation. In the server log file, keep the mentioned log lines and split the field like the expected O/P. Please mention the steps to do it.

---

<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:** [May 7, 2018, 2:37am UTC](https://discuss.elastic.co/t/need-the-steps-to-index-and-mapping-the-unstructured-log-file-and-show-the-expected-fields-properly-in-kibana/127236/2 "2018-05-07T02:37:04Z")

</div>

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