# How to do string analysis

**URL:** <https://discuss.elastic.co/t/how-to-do-string-analysis/139897>\
**Category:** Elasticsearch\
**Created:** [July 13, 2018, 7:58am UTC](https://discuss.elastic.co/t/how-to-do-string-analysis/139897 "2018-07-13T07:58:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambuj\_Saxena](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@Ambuj\_Saxena](https://discuss.elastic.co/u/Ambuj_Saxena)\
**Post date:** [July 13, 2018, 7:58am UTC](https://discuss.elastic.co/t/how-to-do-string-analysis/139897/1 "2018-07-13T07:58:38Z")

</div>

Hi all,

I started learning ELK stack, These are some confusion.

how to analysis string in ELK stack.

I have data which started with A1, A2, A3, A4, A5 something like that.

For Reference

```
A1,12,1.2.3,AB3CD
A2,12,1.2.3,30
A1,1,1.2.3,A3BCD
A2,1,1.2.3,3
A1,2,1.2.3,AB3DC
A2,2,1.2.3,0.1
A1,11,1.2.3,3ABCD
A2,11,1.2.3,3.3
A3,11,,
A4,11,,
A3,21,,
A4,12,,

```

Now what I want I would like to use some mathematical formula on it.

`(A5 -(A1 + A2 + A3))/A4 = This value I need`

How to do that I don't know, I spent some time on the scripted field but they have some limitation on the string so back to square one.

---

<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:** [August 10, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-to-do-string-analysis/139897/2 "2018-08-10T08:12:24Z")

</div>

Closed on August 10, 2018, 8:12am UTC

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