# Collecting from multiple sources

**URL:** <https://discuss.elastic.co/t/collecting-from-multiple-sources/72070>\
**Category:** Logstash\
**Created:** [January 18, 2017, 7:08pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070 "2017-01-18T19:08:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmethe](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mmethe](https://discuss.elastic.co/u/mmethe)\
**Post date:** [January 18, 2017, 7:08pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/1 "2017-01-18T19:08:32Z")

</div>

Hello,

Kind of new to all this so hang in there.

ELK running on Centos 7

Winlogbeat sending logs from several windows servers to ELK

When I try to index logstash (rsyslog), I dont see any data.

**here is the input:**  
input {  
beats {  
port =\> 5044  
}  
udp {  
host =\> "192.168.232.215"  
port =\> 10514  
codec =\> "json"  
type =\> "rsyslog"  
}  
}

**Here is the output:**  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
sniffing =\> true  
manage\_template =\> false  
index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}"  
document\_type =\> "%{[@metadata][type]}"  
}  
if [type] == "rsyslog" {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
}  
}  
}

I can see winlogbeat data in kibana UNTIL I add the UDP section to the inputs and add the IF [TYPE]==rsyslog to the outputs.

The rsyslog stuff is shipped to the ELK which runs rsyslog. I have verified that the ASA Firewall logs are getting to the ELK stack. If I look at indices I see:

[root@brt1-log01 rsyslog.d]# curl -XGET [http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices)  
yellow open winlogbeat-2017.01.17 5 1 111149 0 136.9mb 136.9mb  
yellow open winlogbeat-2017.01.18 5 1 341404 0 386.2mb 386.2mb  
yellow open .kibana 1 1 104 1 104.7kb 104.7kb  
yellow open %{[@metadata][beat]}-2017.01.18 5 1 19877 0 3.9mb 3.9mb  
yellow open logstash-2017.01.18 5 1 0 0 737b 737b

The last entry is the rsyslog stuff, I assume. That last 2 numbers are incrementing.

What am I doing wrong?

Thanks!  
-Mike M

---

<div class="post-metadata">

**Author:** ![kopacko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kopacko/32/10733_2.png) [@kopacko](https://discuss.elastic.co/u/kopacko)\
**Post date:** [January 18, 2017, 7:19pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/2 "2017-01-18T19:19:28Z")

</div>

MIke,  
Your input config doesn't need the host line, that is to define what IP that Logstash is listening on. If you have multiple NICs, then you might need it, but I doubt it.

To see if the syslog messages are really arriving, do a:

> tcpdump -n -A src x.x.x.x

That will show the ASCII text of the syslog messages.

---

<div class="post-metadata">

**Author:** ![mmethe](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mmethe](https://discuss.elastic.co/u/mmethe)\
**Post date:** [January 19, 2017, 4:22pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/3 "2017-01-19T16:22:48Z")

</div>

If I tail the rsyslog log file I can see entries coming from the ASA firewall. I cant seem to see them in elastic search or kibana.

---

<div class="post-metadata">

**Author:** ![kopacko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kopacko/32/10733_2.png) [@kopacko](https://discuss.elastic.co/u/kopacko)\
**Post date:** [January 19, 2017, 5:17pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/4 "2017-01-19T17:17:12Z")

</div>

Mike,  
Can you sanitize a copy of a tcpdump log or two and post it here?

Also, what does your ASA logging config section look like?

---

<div class="post-metadata">

**Author:** ![mmethe](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mmethe](https://discuss.elastic.co/u/mmethe)\
**Post date:** [January 19, 2017, 5:36pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/5 "2017-01-19T17:36:40Z")

</div>

Hi,

If I can see the entries from the ASA in /var/log/remote-hosts can I not be convinced that the logs are getting there?

i think I need to:

1. Verify logstash is getting them
2. Verify that they are then getting to elasticsearch

Correct? If so, How do I do that?

Thanks for the help so far  
-Mike M

---

<div class="post-metadata">

**Author:** ![mmethe](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mmethe](https://discuss.elastic.co/u/mmethe)\
**Post date:** [January 19, 2017, 7:45pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/6 "2017-01-19T19:45:10Z")

</div>

Using kibana sense, I can see this:  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/946f780c3f7c4abba4f4b0bb7492908512368809.png)

---

<div class="post-metadata">

**Author:** ![mmethe](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mmethe](https://discuss.elastic.co/u/mmethe)\
**Post date:** [January 20, 2017, 1:07pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/7 "2017-01-20T13:07:57Z")

</div>

Think I am making some progress, at least on troubleshooting front;

Here is the input:

> [@mmethe](#):
>
> input { beats { port =\> 5044 } udp { host =\> "192.168.232.215" port =\> 10514 codec =\> "json" type =\> "rsyslog" }}

When I start logstash as a foreground process using:

/opt/logstash/bin/logstash -f /etc/logstash/conf.d/02-beats-input.conf --verbose

I get:  
Beats inputs: Starting input listener {:address=\>"0.0.0.0:5044", :level=\>:info}  
Starting pipeline {:id=\>"base", :pipeline\_workers=\>2, :batch\_size=\>125, :batch\_delay=\>5, :max\_inflight=\>250, :level=\>:info}  
Pipeline started {:level=\>:info}  
Logstash startup completed  
Starting UDP listener {:address=\>"0.0.0.0:10514", :level=\>:info}

**So, it appears that the UDP pipeline on 10514 never starts. How can figure out why? netstat shows that as:**  
netstat -na | grep 10514  
udp 0 0 192.168.232.215:10514 0.0.0.0:\*

Does the above info get anyone closer to figuring out why this is not working?

Thanks!  
-Mike M

---

<div class="post-metadata">

**Author:** ![mmethe](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mmethe](https://discuss.elastic.co/u/mmethe)\
**Post date:** [January 20, 2017, 5:56pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/8 "2017-01-20T17:56:47Z")

</div>

Further...

--debug shows the rsyslog data when I run logstash --debug  
output received {:event=\>{"@timestamp"=\>"2017-01-20T13:40:09.000Z", "@version"=\>"1", "message"=\>" Deny udp src inside:10.0.0.122/55645 dst backup:172.217.6.238/443 by access-group "acl\_in" [0x0, 0x0]", "sysloghost"=\>"[is1-asa1.retreathealthcare.org](http://is1-asa1.retreathealthcare.org)", "severity"=\>"warning", "facility"=\>"local7", "programname"=\>"%ASA-4-106023", "procid"=\>"-", "type"=\>"rsyslog", "host"=\>"192.168.232.215"}, :level=\>:debug, :file=\>"(eval)", :line=\>"22", :method=\>"output\_func"}

---

<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:** [February 17, 2017, 5:56pm UTC](https://discuss.elastic.co/t/collecting-from-multiple-sources/72070/9 "2017-02-17T17:56:49Z")

</div>

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