#logstash

/

      • jameshyde
        by default, kibana would retrieve last 15 mins
      • devOpsEv
        yeah
      • blalor_afk joined the channel
      • blalor_afk is now known as blalor
      • fredrikb joined the channel
      • jameshyde
        I could see elasticsearch indexes for today is being updated with current timestamp.
      • bhangm has quit
      • electrical joined the channel
      • what else I need to check?
      • bhangm joined the channel
      • logger72 joined the channel
      • alistar joined the channel
      • whack
        jameshyde: try widening your search period?
      • devOpsEv
        have you changed the address of ES?
      • jameshyde
        whack: I tried 'all' already, no luck
      • logger72
        hey whack :)
      • jameshyde
        devOpsEv: it is localhost / 127.0.0.1, so no
      • logger72
        could you help me quikly ...
      • is it possible to use GROK to pull all of the @ from the folllowing ... " Tweet stuff ..... @name @name @name"
      • but i dont know how many @ there will be ..
      • there could be 1 there could be 10 ?
      • feylya joined the channel
      • i cant seem to find a way with grok ...
      • btw kibana 3 is awesome .. add some alerting capability and i would pay for it !
      • semiosis
        logger72: check out the workaround for modsectag in ,,(mod security)
      • logstashbot
        logger72: I do not know about 'mod security', but I do know about these similar topics: 'modsecurity'
      • semiosis
        logger72: ,,(modsecurity)
      • logstashbot
        logger72: mod_security crs log parser: https://gist.github.com/1346387
      • kjstone00 joined the channel
      • semiosis
        s/modsectag/MODSECRULETAGS/
      • fredrikb has quit
      • captures up to 10 things
      • codex0_ joined the channel
      • allows for more though they're not captured
      • kieren has quit
      • logger72
        ah .. nice ..
      • thats just the ticket ..
      • logger72 has quit
      • fredrikb joined the channel
      • logger72 joined the channel
      • sorry power ran out :)
      • btw .. what do you reckon the vm spec would be etc Xm settings for 12Mbyts per second of log traffic < 512k in size ... ?
      • <512k per event i mean
      • i have SSD so i/o is ok ..
      • codex0 has quit
      • codex0_ is now known as codex0
      • also i didnt realise that ES was tuned for read rather than write ?
      • EEAA
        question regarding multiline support. I currently have my multiline{} filter rules in the shipper's config. I'd love to be able to move as much custom config/filtering/grok as possible to the central server's config. So, the question is: if multiline messages are broken apart by the shipper's config, can they be re-assembled by similar rules in the central server's config?
      • logger72
        i changed it and it made a massive difference on iops
      • semiosis
        amazing, someone forked & updated my modsecurity crs parser! https://gist.github.com/schewara/5668621
      • logstashbot
        Title: Logstash parser for ModSecurity/CRS entries in the Apache ErrorLog (at gist.github.com)
      • RickFromTheSOC joined the channel
      • semiosis feels good
      • logger72
        semi .. did you see my windows GROK parser ..
      • semiosis
        did not
      • logger72
        does the full windows evt log ..
      • semiosis
        i'm sorry to hear that ;)
      • logger72
        shall i pasty it for you
      • you want it ?
      • semiosis
        no thanks
      • not into windows
      • OSInet joined the channel
      • logger72
        lol .. me neither .. i had to do it for work :)
      • semiosis
        although if you want to share with others, put it in a gist and teach logstashbot the link
      • logger72
        how do i teach ?
      • semiosis
        `learn foo as bar
      • logstashbot
        semiosis: OK.
      • semiosis
        `foo
      • logstashbot
        semiosis: bar
      • semiosis
        `forget foo
      • logstashbot
        semiosis: OK.
      • semiosis
        `foo
      • logstashbot
        semiosis: Error: "foo" is not a valid command.
      • logger72
        k
      • semiosis
        thats all you need to know
      • you could also i suppose contributed to the logstash cookbook
      • logger72
        i tried , i get a 404
      • semiosis
        oh
      • logger72
        its been like that for ages ..
      • i have snort, windows , cisco asa
      • fredrikb has quit
      • oh an brocade stuff as well
      • michaelk
        i see you take your handle seriously
      • logger72
        eh ?
      • michaelk
        logger72, you deal with logs a lot
      • logger72
        yeah i do ... i also have twitter :)
      • devOpsEv
        EEAA: that should work
      • logger72
        thats interesting . .i hacked a smiley face into Kibana .. when there are a load of :( the face looks glum and vice versa ...
      • fredrikb joined the channel
      • devOpsEv
        EEAA: according to the docs, multiline uses the event source as well as a regex pattern to assemble events from multiline, so should be fine
      • dreverri has quit
      • EEAA
        devOpsEv: ok, excellent. I'm just sick of having to maintain agent-based config. I just want to have the agents suck up log and then I'll deal with organizing it all in the central server.
      • devOpsEv
        I hear ya
      • My shipper configs are like 15 lines at most
      • EEAA
        devOpsEv: I'll hopefully be there soonish.
      • logger72
        i just spit them all onto a message queue ...
      • devOpsEv
        input { some files here } output {redis} and that's about it
      • logger72
        probs with that is though the are unordered ...
      • EEAA
        logger72: good point. Dangit.
      • logger72: our devs *really* don't like trying to manually sort unordered python stack traces. :)
      • devOpsEv
        what do you mean unordered? not chronologically ordered?
      • logger72
        the message queue is not pop/push its random
      • EEAA
        devOpsEv: yes. Applying the multiline filter on the shipper solves that problem.
      • logger72: hrm, is there any way to make redis FIFO?
      • devOpsEv
        redis is pop/push though
      • logger72
        yup ..
      • devOpsEv
        redis is FIFO by default
      • EEAA
        ok
      • logger72
        i have to use our enterprise bus which isnt :( which is a bit shit for me ...
      • devOpsEv
        just random? not stacked?
      • EEAA
        then I wonder where the un-ordering is happening. Cause we saw this exact thing before I implemented multiline filtering.
      • logger72
        redis is FIFO by default ?
      • sweet
      • EEAA
        at the moment, I only have a single redis consumer box, so that wouldn't be the source...
      • devOpsEv
        actually
      • it's... not
      • but
      • logger72
        i didnt think it was ..
      • devOpsEv
        logstash treats it as such
      • you can lpop or rpop
      • so you can pop from either end or push from either end
      • logger72
        yes but the subscriber may not get events in the same order they went in ..
      • devOpsEv
        logstash always does an lpush on the output, and blpop on the redis input
      • logger72
        k
      • whack
        devOpsEv: rpush
      • logger72
        btw how do you escape @ in grok ?
      • devOpsEv
        right, right
      • so it does treat it as fifo
      • whack
        logger72: I don't understand the question. You don't need to escape '@'
      • logger72
        kk
      • devOpsEv
        so newest events get pushed to the right end of the stack, and oldest events get blpop from the left end of the stack
      • so redis itself isn't fifo or lifo, depends on what redis commands you use
      • logstash treats it is fifo
      • s/is/as
      • codex0 has quit
      • EEAA
        so if I have python.log -> logstash-shipper -> redis -> logstash-central -> elasticsearch, why would multiline logs come in out-of-order (without using multiline filter on the shipper)
      • electrical
        EEAA: they should come in order. afaik
      • attractiveape
        I always run multiline on the shipper, so it doesn't have this problem.
      • whack
        EEAA: can you show an example of this out-of-order-ness ?
      • duck_tape joined the channel
      • EEAA
        whack: I can, once I get my ES out of the funk it's currently in.
      • zdunn has quit
      • logger72
        gota drop off for a sec...
      • feylya has quit
      • kaisan joined the channel
      • kaisan
        morning (somewhere it must be morning)
      • JoeJulian
        michaelk: cpu utilizaton for the logstash that's ... well it's not exactly hanging but just going really slow ... is 0%.
      • dreverri joined the channel
      • JoeJulian just got back from a physical therapy appointment.
      • electrical
        wb JoeJulian