#logstash

/

      • itsmebp joined the channel
      • avleen
        is _grokparsefailure added when *any* grok fails to match, or only when they all fail to match?
      • whack
        avleen: when all, in theory, except in some cases where there's a known-ish bug
      • gyre007 joined the channel
      • but the intent is when all of them fail
      • avleen
        ok :) cool, that's what i was hoping.
      • dblessing joined the channel
      • avleen doing a little rearchitecting and adding in lumberjack
      • oh that leads me to another question: if i specify a type on an input, and the incoming data from lumberjack has a different type specified... what happens?
      • because all inputs need types
      • whack
        you're using lumberjack input w/ format set?
      • avleen: it's a misdesign that inputs require 'type' to be set
      • avleen
        i'm hpoing to
      • json all the logs, etc
      • :)
      • whack
        avleen: so what happens is that if you have format => json_event, the 'type' in your event itself will remain
      • avleen
        eeeeexcellent
      • whack
        at that point the 'type' on the input setting becomes more of a default-if-not-present
      • avleen
        ok :)
      • yeah my logs aren't JSON at all yet
      • ohlol has quit
      • jonconley joined the channel
      • whack
        json is stupid, unformatted plain text for all!
      • NATURAL LANGUAGE WILL SOLVE THIS
      • stackedsax1 joined the channel
      • avleen
        :-D
      • jkitchen
        yaml.
      • yaml's starting to grow on me ever so slightly.
      • like a fungus.
      • stackedsax1 has quit
      • it's definitely not for a streaming format though :)
      • stackedsax joined the channel
      • kevino joined the channel
      • kjstone00 joined the channel
      • mb3
        whack: would you mind scrolling up a bit for my coordinate array question? :)
      • I can't get it to not be a string in ES
      • madAndroid joined the channel
      • whack
        well, you're setting it as a string
      • but it probably wants "coordinates": "-122...,37..."
      • avleen
        msgpack!
      • whack
        instead of an array with 1 string, have it a string
      • avleen: lol
      • mb3
        add_field => [ "coordinates", "%{geoip.longitude},%{geoip.latitude}" ]
      • how do I specify that without the quotes?
      • whack
        without quotes?
      • madAndroid has quit
      • ctoa joined the channel
      • nmische_ joined the channel
      • not sure what you mean
      • you want to have 'coordinates' be an array of two numbers?
      • nmische__ joined the channel
      • like "coordinates": [ "-122
      • braoru joined the channel
      • erm
      • b_ joined the channel
      • like "coordinates": [ "-122", "37" ]
      • ?
      • nmische has quit
      • antares_
        whack: hey
      • whack
        antares_: howdy!
      • antares_
        whack: I have a couple of questions about developing plugins for 1.1.x
      • (backporting the new rabbitmq plugin as we speak)
      • kjstone00 has quit
      • nmische_ has quit
      • I'm getting :exception=>#<NameError: uninitialized constant LogStash::Pipeline when I try to reference LogStash::Pipeline::ShutdownSignal
      • whack
        blerg, lemme see what I did there
      • antares_
        In master it's just LogStash::ShutdownSignal, I think
      • whack
        yeah it's just that
      • I'm trying to move exceptions to a single namespace
      • antares_
        whack: is there a way to run irb with all logstash dependencies on $LOAD_PATH?
      • whack
        bin/logstash irb
      • or pry if you prefer pry
      • irb/pry launched with bin/logstash (or java -jar logstash.jar pry) doesn't have *everything* loaded, but you can require "logstash/whatever" and it'll work
      • basically just sets up the right gem/lib paths
      • ypli joined the channel
      • antares_
        whack: yup, cannot access LogStash::Pipeline there either
      • whack
        require "logstash/pipeline"
      • antares_
        hm, if I explicitly require "logstash/pipeline", I can
      • whack
        I should update the pry/irb stuff to load common things
      • antares_
        should I do that from the plugin?
      • that seems a little odd
      • whack
        what do you need from the pipeline class?
      • maybe I am confused
      • are you working on the 1.1.14 amqp/rabbitmq stuff?
      • JoeyI_ is now known as JoeyI
      • ypli
        Hi, guys, I am using the embedded elasticsearch output, how can I reset the elasticsearch index quickly?
      • mb3
        whack: sorry, I'm back. Will this actually work? add_field => [ "coordinates", %{geoip.longitude},%{geoip.latitude}]
      • I thought the quotes were mandatory around parameters
      • antares_
        whack: yup
      • whack: I need the ShutdownSignal exception
      • otherwise I cannot cancel a blocking consumer on HotBunnies
      • logstashbot
        New news from newjiraissues: Christopher Carpenter created LOGSTASH-1228 - UndefinedConversionError with EventLog and GELF <https://logstash.jira.com/browse/LOGSTASH-1228>;
      • antares_
        whack: ok, added a require and that helped. Now I see that @codec is nil but I also get "Unknown setting 'codec' for rabbitmq" if I try to set params["codec"] like I do in master
      • whack
        mm
      • that's odd
      • mb3: show me an example of what ou want "coordinates" to be set to?
      • antares_: like LogStash::Input::Rabbitmq.new("codec" => ...) fails?
      • mb3
        whack: [-23.234,2323] an array of floats in ES
      • antares_
      • logstashbot
        Title: logstash/lib/logstash/inputs/rabbitmq.rb at master 路 logstash/logstash 路 GitHub (at github.com)
      • whack
        mb3: ahh, you'll probably need two add_fields and a mutate filter to convert it to float
      • add_field => [ "coordinate", "%{geoip.longitude}" ]
      • add_field => [ "coordinate", "%{geoip.latitude}" ]
      • then later, filter { mutate { convert => [ "coordinate", "float" } }
      • mb3
        whack: so duplicate fields will automatically be combined into arrays?
      • whack
        should yes
      • jkitchen
        hrm. there should be a mutilate finter.
      • filter.
      • mb3
        interesting, I'll try that
      • jkitchen
        trying to thing what it would do.
      • whack
        jkitchen: use nethack's engraving-fade algorithm on your message?
      • jkitchen
        whack: I don't know those words
      • :(
      • whack
        ahh
      • jkitchen
        I'm a really horrible nerd, I don't play dwarf fortress or nethack
      • whack
        in nethack you can engrave or write in the dust on the ground
      • over time the writing fades
      • it has a clever algorithm to fade it in a way that makes sense in plain text
      • like 'h' will become 'n' or 'i' etc
      • b_ has quit
      • logstashbot
        Title: Source:NetHack 3.4.3/src/engrave.c - NetHackWiki, the NetHack Wiki (at nethackwiki.com)
      • whack
        "algorithm" is too strong a word, but it's still awesome
      • jkitchen
        maybe it could do like what windows' safemode screen does when you have a broken filesytem
      • electrical has quit
      • trying to find a good example
      • antares_
        whack: is my approach to defaulting to the json codec incorrect?
      • whack
        antares_: no I think it should default to json
      • St0rmSh4dow joined the channel
      • current release defaults to assuming json_event (which is just 'json' in master)
      • antares_
        whack: how come @codec is nil for me?
      • jkitchen
      • logstashbot
        Title: windows - What explains the garbled message "Start Wandows Ngrmadly" in text mode? - Super User (at superuser.com)
      • whack
        jkitchen: yet another good question marked closed.
      • what a shithole of a site.
      • antares_: how are you experiencing @codec being nil?
      • jkitchen
        whack: I was referring to the screenshot :)
      • whack
        jkitchen: yeah I know :(
      • antares_
        whack: if I keep https://github.com/logstash/logstash/blob/maste... on 1.1.x, I get an exception about unknown setting "codec"
      • logstashbot
        Title: logstash/lib/logstash/inputs/rabbitmq.rb at master 路 logstash/logstash 路 GitHub (at github.com)
      • antares_
        whack: if I remove it, @codec is nil (NoMethodError: undefined method `decode' for nil:NilClass) on the line that has @codec.decode(data)
      • electrical joined the channel
      • whack
        antares_: are you invoking the rabbtimq plugin via pry/irb?
      • antares_
        whack: no, just running the agent
      • whack
        hmm
      • antares_
        whack: I can push a branch if you want
      • whack
        that's super weird, @codec should get set when the plugin is initialized
      • antares_
        whack: I grep for "codec" and only see it ever mentioned in the rabbit plugin (1.1.x)
      • whack
        I think the logic for special-casing a default codec isn't well done yet
      • maybe