# Logstash: getting hadoop's tasks-logs

**URL:** <https://discuss.elastic.co/t/logstash-getting-hadoops-tasks-logs/2370>\
**Category:** Logstash\
**Created:** [June 10, 2015, 6:27pm UTC](https://discuss.elastic.co/t/logstash-getting-hadoops-tasks-logs/2370 "2015-06-10T18:27:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohadR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ohadr/32/130085_2.png) [@ohadR](https://discuss.elastic.co/u/ohadR)\
**Post date:** [June 10, 2015, 6:27pm UTC](https://discuss.elastic.co/t/logstash-getting-hadoops-tasks-logs/2370/1 "2015-06-10T18:27:55Z")

</div>

I've searched here and googled the web, but surprisingly I could not find any info about this subject.  
So I use LS+ES+Kibana to collect and view logs of services that run on tomcat. Works like a charm.  
Now my next challenge is to collect **logs of hadoop tasks**. I saw [this plugin](http://www.paluch.biz/blog/95-logging-hadoop-messages-into-logstash-using-logstash-gelf.html), but the author told me it deals only with hadoop deamons, rather than logs of tasks...

hadoop tasks' logs are log4j, so if I use log4j-input-plugin, and use SocketAppender in my log4j.xml, I do get the logs, but **I cannot know from which TASK it comes from** (there can be several tasks on the same host)

anyone has an idea? I'm sure I'm not the only one who tries to see hadoop logs with logstash....  
thanks!

---

<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:** [July 6, 2017, 5:37am UTC](https://discuss.elastic.co/t/logstash-getting-hadoops-tasks-logs/2370/2 "2017-07-06T05:37:50Z")

</div>

Closed on July 6, 2017, 5:37am UTC


