# Parsing process ID incorrectly

**URL:** https://discuss.elastic.co/t/parsing-process-id-incorrectly/197862
**Category:** Logstash
**Created:** [September 3, 2019, 12:50pm UTC](https://discuss.elastic.co/t/parsing-process-id-incorrectly/197862 "2019-09-03T12:50:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Alpha\_Bravo](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alpha\_Bravo](https://discuss.elastic.co/u/Alpha_Bravo)
#### Post date: [September 3, 2019, 12:50pm UTC](https://discuss.elastic.co/t/parsing-process-id-incorrectly/197862/1 "2019-09-03T12:50:52Z")

</div>

WorkFlow:

Beats (7.0) \> Logstash \> Elastic

Issue:

The process ID shown below in Elastic is not parsed correctly, we would like it to be without commas.

**event.ParentProcessId : 1,739,524,678,541**

Three different configs I have tested, in our logstash,

* * *

## filter { kv { source =\> "metadata" trim =\> """ include\_keys =\> ["ProcessId","ParentProcessId"] target =\> "kv" }

filter {

grok {

match =\> { "message" =\> %{DATA:ProcessId},%{DATA:ParentProcessId} }

}

## }

## filter { if [event][ParentProcessId] grok { match =\> { "message" =\> %{DATA:ParentProcessId} } } if [event][ProcessId] grok { match =\> { "message" =\> %{DATA:ProcessId} } } }

Any ideas, what am I missing here?

---

<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 1, 2019, 12:50pm UTC](https://discuss.elastic.co/t/parsing-process-id-incorrectly/197862/2 "2019-10-01T12:50:53Z")

</div>

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