BaM`: Thanks for the reply. I'm just trying to index log events but sucking at it right now. I have filebeat sending to logstash sending to ES. But the filebeat clients are constantly being stopped from logging with this error: 2018-02-26T18:19:26-08:00 ERR Connecting error publishing events (retrying): read tcp 10.0.10.19:51852->10.0.10.22:5044: i/o timeout
I'm just trying to figure out what I'm missing. For a while our ES was slammed. But now it's totally idle. And it's not getting any logs.
BaM`
that sounds like anetwork issue between filebeat and logstash
*a network
jsdorlus has quit
tessier
Yeah, I thought so too. But nc -v connects successfully every time. I'm just about to give this thing a public IP (not behind the firewall) just to see if maybe we are running out of some resource on the firewall but I really don't think that's it. I just now realized that I'm running logstash with the default configs. I wonder if it needs more memory. Java really bugs me in that way. Things mysteriously perform like crap until you figure out the m
hugh_jass has quit
hugh_jass joined the channel
JasonCL joined the channel
feeshon joined the channel
JasonCL has quit
overLayer joined the channel
JasonCL joined the channel
hugh_jass has quit
hugh_jass joined the channel
energizer has quit
energizer joined the channel
energizer has quit
akp has quit
energizer joined the channel
jsdorlus joined the channel
b8se11 joined the channel
Guest48 joined the channel
Guest25308 has quit
Guest48 has quit
Guest48 joined the channel
gkoch has quit
gkoch joined the channel
jsdorlus has quit
feeshon
anyone have issues with policykit failing logstash?
maslen: I would assume so, as there's a strip_attachements option
but what you'd do with the attachemnt is questionable, unless it's plaintext I guess
maslen
BaM`: Download it.
BaM`
I'm using it in prod, but the mailbox I'm polling never gets attachements, so I don't know for sure
maslen
Poop.
BaM`
maslen: to where? what will logstash do with it?
maslen
I set up a docker-compose instance via https://github.com/deviantony/docker-elk and tried using IMAP access to a gmail account, but I don't see the emails even displaying
(First time ever using ELK, so I'm brand new to this all. I have used Splunk in the past, but never managed an isntance)
BAM`: The use case is that we'd use ES to store the full contents of all enterprise emails for 30 days or so.
tasse has quit
The idea being that if an IDS alert fires, an analyst should be able to retrieve the full contents of the email that triggered the alert
BaM`
ok so I've never tried this but I'll assume that you'd need to store them as text-encoded
also be careful if you're using a message broker - I know that kafka won't accept messaged >1m or so by default
*messages
tasse joined the channel
elasticsearch will allow you to store binaries, but idk if logstash is capable of doing that - I'm going to assume not
maslen
Any easy way to test it? I have the gmail IMAP account set up
I just don't know how to debug the lack of content
BaM`
are you sure you really want to put them in ES, on the offchance you might want to look at them later?
but every message will hit every output unless you put a condition around them
victori has quit
and if one output blocks, they all will
unless you use multiple pipelines, but probably best to leave that for now
tessier
maslen: How would one use the imap input plugin? Never heard of it before. Been away from ELK for a good 6 years. A lot has changed! The description on the page for the plugin says "Periodically scan an IMAP folder (INBOX by default) and move any read messages to the trash." but I don't see where logstash or ES are involved there. That sounds like what imapfilter does.
Is ES being used as a mail store these days?
maslen
OK, I see in teh logs that it pulled the email contents
BaM`
what are your outputs doing?
tessier
Meanwhile, I'm still trying to figure out why my logstash isn't accepting events.
BaM`
tessier: are you using tls?
Guest48 has quit
maslen
Poop. It can handle attachments - but only if they're plaintext.