# Wrong output

**URL:** <https://discuss.elastic.co/t/wrong-output/266446>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 6, 2021, 2:24pm UTC](https://discuss.elastic.co/t/wrong-output/266446 "2021-03-06T14:24:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Mohamad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_mohamad/32/85090_2.png) [@David\_Mohamad](https://discuss.elastic.co/u/David_Mohamad)\
**Post date:** [March 6, 2021, 2:24pm UTC](https://discuss.elastic.co/t/wrong-output/266446/1 "2021-03-06T14:24:46Z")

</div>

Hi everyone,  
I recently started using the elastic stack for the first time and I cant seem to find a way to get the desired output.  
I'm trying to use this data:  
admintool[899] browser=Mozilla%2F5.0 %28Windows NT 10.0;user=dmohamad  
With this grok pattern:  
%{WORD:ag.config.service}[%{INT:ag.config.id}]  
The output is:  
{  
"ag": {  
"config": {  
"service": "2F5"  
}  
}  
}  
The way I would like it to be is:  
{  
"ag": {  
"config": {  
"service": "admintool"  
"id": "899"  
"user": "dmohamad"  
}  
}  
}

Thanks In advance.

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [March 6, 2021, 3:21pm UTC](https://discuss.elastic.co/t/wrong-output/266446/2 "2021-03-06T15:21:50Z")

</div>

hi @David_Mohamad ,  
try use this :

```auto
%{WORD:ag.config.service}\[%{INT:ag.config.id}\] browser=%{DATA:ag.config.browser};user=%{WORD:ag.config.user}

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f7c20cb6e05653bcef2ef916690fef4aee934f11.png)

---

<div class="post-metadata">

**Author:** ![David\_Mohamad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_mohamad/32/85090_2.png) [@David\_Mohamad](https://discuss.elastic.co/u/David_Mohamad)\
**Post date:** [March 8, 2021, 5:02pm UTC](https://discuss.elastic.co/t/wrong-output/266446/3 "2021-03-08T17:02:41Z")

</div>

Thanks a lot. It works 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:** [April 5, 2021, 7:02pm UTC](https://discuss.elastic.co/t/wrong-output/266446/4 "2021-04-05T19:02:42Z")

</div>

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