#logstash

/

      • whack
        I use lumberjack which handles the same functionality that logstash uses redis for
      • MixMuffins
        whack: so my setup looks like this: 30 prod servers -> rabbitMQ -> logstash filtering server -> ES clusters for certain logs types -> back to logstash server hosting Kibanas
      • aaand HR just told me they scheduled a meeting for now 30 minutes ago.
      • JohnS_
        i was thinkig to put redis on all out web servers....and ship logs to local, and tell elastic to get there for input
      • MixMuffins
        bbl.
      • imperialwicket
        whack: do your servers send logs to a particular hostname, or some load balancer?
      • whack
        imperialwicket: lumberjack handles that; I give a list of servers and it figures it out
      • eper
        that works fine but juniper kit tends to not run lumberjack to well
      • whack
        well certainly lumberjack isn't a solution for all situations ;)
      • eper
        thought there was a magic trick I was missing - damn !
      • whack
        most juniper stuff is freebsd-based, isn't it?
      • eper
        yeah
      • i can get to shell but the memory is not massive for java stuff to run
      • whack
        lumberjack should run on it then, though I haven't tested.
      • lumberjack is written in C, not java.
      • Urocyon
        I think I found my strange message problem… a couple of extra escapes in something that's getting single quoted rather than double quoted.
      • eper
        also i think it might violate our support contracts :)
      • worth a go though
      • whack
        eper: indeed, which means you should get logs from whatever supported interface there is.
      • willejs has quit
      • rashidkpc
        MixMuffins: I haven't read everything, but have we addressed your grok filters?
      • imperialwicket
        whack: but it's still the case that if you want to deploy an 8th LS/ES server, you need to push that updated server list to all the shipping servers before 8 gets used, right?
      • saurajeetd has quit
      • whack
        imperialwicket: well, yes, but at some point to add another server to any system you have to have a way of advertising that additional server's presence.
      • rashidkpc
        MixMuffins: oh, you're gone. Well, if we haven't already addressed, use grok less. Grok is great, but if you can avoid it, you're going to get much better performance
      • whack
        imperialwicket: and the config file is automatically generated for lumberjack, so there's nothing to do by hand for me
      • webb joined the channel
      • (in my case, anyway)
      • rashidkpc
        MixMuffins: as an example, I went from shipping logs as strings, through grok, to shipping as json objects with minimal groking, and went from 350e/s per LS node, to 1800+
      • cjs226 has quit
      • imperialwicket
        whack: sounds right, just checking. thanks for details, much appreciated
      • JohnS_
        can someone tell me what is the best INPUT for redis, Thread and batch_count
      • Layke has quit
      • whack
        there's no best
      • JohnS_: experimentation is the best recommendation
      • MixMuffins
        rashidkpc: yeah, actually. The majority of my logs aren't using grok filters; they're actually being input directly thanks to changes using a logstash json appender that formats the logs into an easy-to-parse format for logstash
      • So, short meeting, but I need to head home for a bit. One of my coworkers passed away this morning, which is a bit of a shakeup.
      • JohnS_
        whatc: yes but there should be some guidance
      • rashidkpc
        MixMuffins: my condolences
      • JohnS_
        as per cpu or somthing else
      • whack
        JohnS_: I don't really have any guidance. If I did, I'd set that guidance to be the default values.
      • so my guidance is generally "use the defaults"
      • kjstone00 has quit
      • MixMuffins
        whack rashidkpc: Thank you for help though. :) I'll have to talk with you guys on a different date. I seem to have the worst luck so far as coming in here for questions; gotta love unexpected events. In any case, have a wonderful evening.
      • MixMuffins has quit
      • JohnS_
        there should be something about on how big rate can logstash read from redis
      • whack
        JohnS_: taht depends on your configuration (software and hardware)
      • I've done 25000 events/sec with logstash 1.1.13 on my workstation
      • JohnS_
        whack: yes but with 4cpu machinge what threads and batch to set?
      • whack
        If you care, here's the results of my last test set
      • logstashbot
        Title: semicomplete (at docs.google.com)
      • JohnS_
        wow
      • whack
        you're most interested in rows 10-13
      • rashidkpc
        i assume thats rabbitmq with the default settings?
      • whack
        rashidkpc: the plugins with default settings? yes
      • rashidkpc
        I've had no problem consuming 6500+ e/s out of rabbit with ack disable
      • disabled
      • whack
        nod
      • rashidkpc
        and thats annecdotal
      • whack
        I was testing performance scenarios where acknowledgemnets were required
      • rashidkpc
        lah
      • ah
      • whack
        (lumberjack and redis can do them, rabbitmq can but has a massive performance hit)
      • you can do acks + prefetch = 50 and get OK perf I think
      • but it's still lots of acks
      • lumberjack ammortizes ack costs by batching it like tcp does
      • Seldaek has quit
      • Seldaek joined the channel
      • willejs joined the channel
      • willejs has quit
      • JohnS_
        whach: one last Q
      • how do you do the rate tests?
      • whack
        hackishly
      • JohnS_
        lol
      • whack
        generator input (w/ count set if I want a finite test)
      • Layke joined the channel
      • or generator input + metrics filter + stdout output
      • or generator input + stdout output w/ debug_format => dots, piped to 'pv' to gauge event rate
      • JohnS_
        clever
      • adamjt has quit
      • or just stout with time and wc-l
      • JohnS_ has quit
      • ohlol joined the channel
      • EnriqueCadalso joined the channel
      • h0cin has quit
      • doublerr has quit
      • dpippen joined the channel
      • gl0balthreats has quit
      • itsmebp has quit
      • cjs226 joined the channel
      • cjs226 has quit
      • jessemdavis has quit
      • willejs joined the channel
      • Jippi has quit
      • eper has quit
      • doublerr joined the channel
      • DaveANI_ joined the channel
      • DaveANI has quit
      • avishai has quit
      • [diecast] has quit
      • threesome has quit
      • kjstone00 joined the channel
      • stackedsax1 has quit
      • stackedsax1 joined the channel
      • anveo has quit
      • willejs has quit
      • juicer2 has quit
      • MartinCleaver
        whack: aside doing a load(__FILE__) inside my plugin, is there anything else I might need to do?
      • because I can see my code calling load, but new method definitions don't take effect
      • :(
      • whack
        I've never bothered with code reloading in ruby, so I don't know if it's more complicated than that.
      • MartinCleaver
        well, seemingly it is
      • unless jruby does something different to ruby
      • kubes__ has quit
      • kubes joined the channel
      • whack
        well jruby does all sorts of caching optimizations, I don't know if the load() will invalidate the cache or whatnot
      • are you loading code from the jar? or local files?
      • maybe ask in #jruby
      • afk for a bit
      • willejs joined the channel
      • kjstone00 has quit
      • MartinCleaver
        plugin files come from the filesystem (local files), the rest of logstash comes from the jar
      • rashidkpc
        aw yeah, did someone say editable filters?
      • logstashbot
      • rashidkpc
        Whoop: ^
      • MartinCleaver
        pretty
      • kubes has quit
      • nhhagen has quit
      • nhhagen joined the channel
      • Whoop
        Sweeet
      • rashidkpc: is that in head?
      • rashidkpc
        just about to merge it
      • Whoop
        awesome :)
      • will upgrade tomorrow, thanks!
      • rashidkpc
        merged
      • cjs226 joined the channel
      • Whoop: note that it applies to all filter type except time. Time is sort of special.
      • types
      • Whoop
        time is fine :)
      • thanks!
      • a13x2121
        events are taking 3+ minutes to appear in elasticsearch, how can i determine if logstash or elasticsearch is slow?
      • jiboumans has quit
      • kimchy has quit
      • frozenfoxx has quit
      • rashidkpc
        a13x2121: are you using some sort of queuing mechanism?
      • kimchy joined the channel
      • a13x2121
        not currently, client syslog ->syslog (logstash) to elasticsearch
      • rashidkpc
        are ES and LS on the same box? Using embedded ES or standalone?