dino82: if the world goes to hell, it might be running a grok you weren't expecting. Set a unique tag_on_failure for each grok just to make sure.
dino82
Alright
What if I am still getting _grokparserfailures on logs that seem to grok perfectly?
rastro
could be a bug somewhere (logstash or the debugger), i suppose. let's confirm the first part first.
xtruthx has quit
derjohn_mob joined the channel
asix3 joined the channel
asix3
hello -- does anyone have any experience with the jdbc plugin?
I am trying to connect logstash to a sqlserver express instance on my local machine, but I keep getting an error: :message=>"Pipeline aborted due to error", :exception=>#<LogStash::ConfigurationError: com.microsoft.sqlserver.jdbc.SQLServerDriver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library?>
jbehrends joined the channel
Looking around online, it seems like that error could be thrown if any of the required jdbc configuration settings are off
Title: TheP(aste)B.in - For all your pasting needs! (at thepb.in)
alsochris has quit
nettly
troll!
kick
antipsychiatry
Fuck mossad, Cia' Nsa, fake jews from occupy " israel
Helheim joined the channel
antipsychiatry has quit
jbehrends has quit
sndcrb has quit
winem_ has quit
Itkovian joined the channel
jbehrends joined the channel
shannon_ has quit
shannon_ joined the channel
rem5 has quit
treehug88 joined the channel
rem5 joined the channel
dvdjaco has quit
brotatochip has quit
brotatochip joined the channel
rastro
nettly: if you can, setup a separate LS/ES to handle logs from your main cluster.
boargod joined the channel
simplycycling joined the channel
nettly
rastro: backup LogStash/ElasticSearch ?
rastro
nettly: not a backup per-se, just another cluster to manage the ELK logs themselves. it can be a small cluster (mine have always been a single machine to run LS/ES).
scl has quit
nettly
rastro: so e.g. a 2nd cloud instance (pardon my ignorance) just for logging "horror" errors
where the whole cluster breaks down
simplycycling has quit
rastro
nettly: there are less-than-horror errors, or hey-horror-might-coming errors.
might-be-coming :/
scl joined the channel
vinrock has quit
nettly
rastro: hm, thanks :)
koendc_ has quit
Sharebea_ has quit
rastro: out of your experience: with docker, would you use filebeat inside to get the logs to logstash? or directly from docker own logging?
rastro: and are you using cloud instances like on amazon for these clusters?
rastro
nettly: i'm happily docker-free. i've built two clusters with a management cluster on the side, and they've both been bare metal, but it would work in AWS, too.
corb00_ has quit
Itkovian has quit
brotatochip has quit
nettly
rastro: so rather containers/docker you prefer/are using currently cloud/VM/baremetal
hm, in the end it rather counts how well the receipts were written :D - then it doesn't really matter if you put it into a container, onto a VM or right on baremetal, I guess
rastro
nettly: had one division using vm/baremetal and another on AWS.
Darcidride has quit
nettly
rastro: your own baremetal servers? are you using something like kubernetes or openstacks for the hvms?
rastro
nettly: i know they were our own servers, but some other group set them up, so i don't know what vm software they were using. I got a shell prompt, which is all i cared about.
nettly
so kind of Virtual Server then
hm
TheAbraxas joined the channel
brotatochip joined the channel
asix3 has quit
shannon_ has quit
rastro: hm, another thing: Would you try to get all applications/services log directly to logstash or at least to a log daemon (like syslog) - or use filebeat on log files?
losh joined the channel
rastro: using filebeat I see one danger that at some point the log file data occupies the server and it could even shut down
having all the log data directly passed to logstash would mean I only have one central place where log data accumulates and I have to wrory about disk space there.
rastro
nettly: you have to plan for when logstash (and/or ES) is down. It'll be down at least when you push a new config once in a while, and might be down longer due to some tech issue.
nettly
rastro: I see - so the logstash daemon may be able to hold data for some while?
rastro
nettly: so... filebeat is nice since it will remember where it left off on a file, whereas syslog will (IIRC) just drop the data.
nettly
I see
rastro: so I would set up some destructive log rotation for the log files so the very old log files can be purged
because that log data is quite probably already in ES
rastro
nettly: LS only accepts a limited amount of data into its buffers (20 records, IIRC).
nettly
oh
this can be full very quickly then, especially with a http server (nginx)
rastro
nettly: when it's full, FB won't be able to send it more data, so it will queue up on the FB side and all/most should be good
nettly
cool
rastro: but an auto-purge of very old log files or when a quote for these log files has been reached for that specific daemon would make sense?
losh has quit
nd___ has quit
rem5 has quit
otherwise the server may become full and stop functioning (it happened once - ok, I put already lots of stuff onto it - but still)
rem5 joined the channel
rastro
nettly: for our retention policy, we use daily indexes and delete them (with curator) after X days.
nettly
rastro: ah, so the log files that are used by filebeats are purged? or also the logs (that passed the curation) on ES?
brotatochip has quit
rastro
nettly: system logs are usually rotated/deleted by logrotate. If you have other (app) logs, they would have their own rotation on the client side.
nettly
rastro: I see, so there are log files are usual with a rotation that purges the oldest log files - and the logs are stored on ES and curated for removal or keeping
scl has quit
rastro
nettly: sounds right.
nettly
rastro: thanks - this part always bothered me (growing log files somewhere outside es)
ardya joined the channel
timewalker has quit
ardya
hi folks, logstash isn't keeping my beats port open very long, nothing in logs, no idea how to further troubleshoot, any direction?
timewalker joined the channel
nettly
rastro: Hm, one "special/exotic" attack comes to mind with logrotation: Imagine an attacker dos'es a server so it produces lots of log entries - those would go to file and then to logstash - and let's say the logstash/es breaks down, there may be the hypothetical point that the log files accumulate so fast that old log files are purged without being sent to ES - and then indeed some log data may be lost that could have been interest
rastro
nettly: yes, if your client-side log rotation happens when LS/ES are not accepting logs, you can lose stuff.
nettly
rastro: would it ever be possible that logs come so fast that filebeat cannot send them all fast enough to ES/ES process them that logrotation eats them? Or is this very unlikely because the bottleneck would be elsewhere?
rastro
nettly: sure, it's possible. but ES scales well (horizontally) to help with such problems.
nettly
rastro: ok, thanks :)
nettly has quit
fatdragon has quit
ardya
so, how to troubleshoot beats port closing a short while after logstash is started?
short while could be 10-30 minutes
rastro
ardya: i didn't think FB ports were permanent. you're implying that they don't reopen when this happens?
ardya
evidently not since a client beats is consistently sending, but the newer data is not received by logstash, nor does lsof show the port open
simplycycling joined the channel
brotatochip joined the channel
rastro
ardya: does FB log anything itself?
ardya
the client? no
simplycycling has quit
crazyphil joined the channel
rastro
ardya: seems like it should. there's also debug/verbose mode in FB that might give you more info.
crazyphil
hello rastro
ardya
is there a debug mode in logstash?
the problem isnt the client, its logstash
crazyphil
ardya: yes --verbose on the command line
unless they changed it
rastro
ardya: but what the client sees could help you debug it.
ardya
when i restart logstash, then the older data is reecived from the client