# How parse sample values frm Kibana

**URL:** <https://discuss.elastic.co/t/how-parse-sample-values-frm-kibana/109534>\
**Category:** Kibana\
**Created:** [November 29, 2017, 8:19am UTC](https://discuss.elastic.co/t/how-parse-sample-values-frm-kibana/109534 "2017-11-29T08:19:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![regiereyes151985](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@regiereyes151985](https://discuss.elastic.co/u/regiereyes151985)\
**Post date:** [November 29, 2017, 8:19am UTC](https://discuss.elastic.co/t/how-parse-sample-values-frm-kibana/109534/1 "2017-11-29T08:19:36Z")

</div>

Hello,  
How to parse sample data values from Kibana?  
Lets say for example from the message field and here the values.  
I want to get only the Relying Party, user name and the error message.

Encountered error during federation passive request.

Additional Data

Protocol Name:  
wsfed

Relying Party:  
[https://walloffame.ciostage.accenture.com](https://walloffame.ciostage.accenture.com)

Exception details:  
Microsoft.IdentityServer.AuthenticationFailedException: rR6j7Lx4Fg53bJ0u1Ds2-The user name or password is incorrect ---\> System.IdentityModel.Tokens.SecurityTokenValidationException: rR6j7Lx4Fg53bJ0u1Ds2 ---\> System.ComponentModel.Win32Exception: The user name or password is incorrect  
at Microsoft.IdentityServer.Tokens.LsaLogonUserHelper.GetLsaLogonUserHandle(SafeHGlobalHandle pLogonInfo, Int32 logonInfoSize, SafeCloseHandle& tokenHandle, SafeLsaReturnBufferHandle& profileHandle)

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [November 29, 2017, 4:20pm UTC](https://discuss.elastic.co/t/how-parse-sample-values-frm-kibana/109534/2 "2017-11-29T16:20:13Z")

</div>

This isn't something usually done at the Kibana level, typically you'll want to parse this data out before ingesting into elasticsearch.

Two common ways of doing this are with [ingest node in elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/ingest.html) or the [grok filter in logstash](https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html). Both more or less use a bunch of regular expressions to parse out JSON before storing the documents.

If these aren't options you could write a scripted field from the index patterns page in Kibana. It can be used to parse field values out at query time.

---

<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:** [December 27, 2017, 4:20pm UTC](https://discuss.elastic.co/t/how-parse-sample-values-frm-kibana/109534/3 "2017-12-27T16:20:16Z")

</div>

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