# Custom applog filtering using logtash

**URL:** <https://discuss.elastic.co/t/custom-applog-filtering-using-logtash/197972>\
**Category:** Logstash\
**Created:** [September 4, 2019, 4:14am UTC](https://discuss.elastic.co/t/custom-applog-filtering-using-logtash/197972 "2019-09-04T04:14:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi\_varma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_varma/32/52989_2.png) [@ravi\_varma](https://discuss.elastic.co/u/ravi_varma)\
**Post date:** [September 4, 2019, 4:14am UTC](https://discuss.elastic.co/t/custom-applog-filtering-using-logtash/197972/1 "2019-09-04T04:14:33Z")

</div>

I am quite new to elk stack, and need your kind help on how can we do format the below log using logstash filters

2019-08-06 09:13:39,921 **BUYER-AR : FPX Info** FPXTRANSID:1908060 - m\_sNewFPXXml in verifyFPXCheckSum: \<?xml version='1.0' encoding='UTF-8'?\>AR01O1908060EX000051T192786097100120190806091336201908060913391T192786097100SE00027222TPAIPAY88NO DEFINENO DEFINEMB2U0227MAYUAAMYR30.00MYR30.00MYR0.000.00`Preformatted text`

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [September 4, 2019, 1:15pm UTC](https://discuss.elastic.co/t/custom-applog-filtering-using-logtash/197972/2 "2019-09-04T13:15:42Z")

</div>

Please edit your post, select the log entry, and click on \</\> in the toolbar above the edit panel. In the preview pane you should see the text change from

very

to

```
<not>very<xml>
```

---

<div class="post-metadata">

**Author:** ![ravi\_varma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_varma/32/52989_2.png) [@ravi\_varma](https://discuss.elastic.co/u/ravi_varma)\
**Post date:** [September 5, 2019, 3:33am UTC](https://discuss.elastic.co/t/custom-applog-filtering-using-logtash/197972/3 "2019-09-05T03:33:46Z")

</div>

Hi Badger,

changed as per suggestion. Kindly have a look now.

---

<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:** [October 3, 2019, 3:33am UTC](https://discuss.elastic.co/t/custom-applog-filtering-using-logtash/197972/4 "2019-10-03T03:33:49Z")

</div>

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