# Greedydata doesn't work

**URL:** <https://discuss.elastic.co/t/greedydata-doesnt-work/108201>\
**Category:** Logstash\
**Created:** [November 17, 2017, 9:42pm UTC](https://discuss.elastic.co/t/greedydata-doesnt-work/108201 "2017-11-17T21:42:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)\
**Post date:** [November 17, 2017, 9:42pm UTC](https://discuss.elastic.co/t/greedydata-doesnt-work/108201/1 "2017-11-17T21:42:05Z")

</div>

[https://pastebin.com/W0w8UqLm](https://pastebin.com/W0w8UqLm)

and pasted here for your ease of reference:

## what is in gstatus.log

2017-11-17 14:16:43.317157 {"volume\_summary" : "u" }

## what is in my configuration

input {  
exec {  
command =\> "cat /home/anelson/gstatus.log"  
interval =\> 1000  
}  
}

filter {

```
grok {
  match => ["[message]", "%{GREEDYDATA:[allofit]}]" ]
  add_tag => []
  tag_on_failure => ["garbled-message"]
}

```

}

output {  
stdout {  
codec =\> rubydebug { metadata =\> true }  
}  
}

when I run the config through logstash:  
2017-11-17T13:38:30,794][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
{  
"@timestamp" =\> 2017-11-17T21:38:30.868Z,  
"@version" =\> "1",  
"host" =\> "ubuntu",  
"message" =\> "2017-11-17 14:16:43.317157 {"volume\_summary" : "u" }\n",  
"command" =\> "cat /home/anelson/gstatus.log",  
"tags" =\> [  
[0] "garbled-message"  
]  
}

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 18, 2017, 7:05am UTC](https://discuss.elastic.co/t/greedydata-doesnt-work/108201/3 "2017-11-18T07:05:26Z")

</div>

Your match statement is incorrect. Please follow the structure/syntax outlined in [the documentation](https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html#plugins-filters-grok).

---

<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 16, 2017, 7:05am UTC](https://discuss.elastic.co/t/greedydata-doesnt-work/108201/4 "2017-12-16T07:05:33Z")

</div>

Closed on December 16, 2017, 7:05am UTC

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