#logstash

/

      • pengin_ joined the channel
      • torqu3e has quit
      • pengin_ has quit
      • jstoiko joined the channel
      • rsamuel has quit
      • llama052 joined the channel
      • rsamuel joined the channel
      • whack
        funix: you want convert => { "[@metadata][rate]" => "integer" }
      • spuder has quit
      • funix
        whack: I have tried that to . it give me same err - Exception in filterworker {"exception"=>#<NoMethodError: undefined method `>' for nil:NilClass>,
      • whack: codec => line {format => "rate2: %{[@metadata][rate]}"} in output shows the rate as x.x and not as an integer.
      • whack: config file - http://pastebin.com/NdjjABy0
      • logstashbot
        Title: logstash rate limiting - Pastebin.com (at pastebin.com)
      • radiocats joined the channel
      • failshell joined the channel
      • radiocats has quit
      • radiocats joined the channel
      • whack
        you need to separate your mutates
      • the ordering is confusing, sorry for that
      • add_field is run _last_
      • so after your convert
      • separate your convert into a new mutate { } and it should work
      • chakatz has quit
      • chakatz joined the channel
      • chakatz has quit
      • mdedetrich joined the channel
      • [jason] joined the channel
      • [jason]
        good evening/morning
      • Schwarzbaer_ joined the channel
      • Baribal_ joined the channel
      • failshell joined the channel
      • Schwarzbaer has quit
      • Baribal__ has quit
      • topwobble joined the channel
      • i need an english to english translation. some fuqnut named cornelius van lunt seems to imply there are two elastic search masters with different cluster names... but there is only one. what gives?
      • gentunian has quit
      • WARNING: [logstash-localhost-76881-13456] received cluster state from [[Cornelius van Lunt][ZC5vyE2LRAieGVaAofOjwQ][localhost][inet[/192.168.134.17:9300]]] which is also master but with a different cluster name [Cluster [1ba07c0a-9b8d-6e50-ce7d-9cf8e6b4ebd4]]
      • elepfontius joined the channel
      • gutocarvalho joined the channel
      • spuder joined the channel
      • elepfontius has quit
      • Cyber-WarDaddy has quit
      • shafjac has quit
      • pheaver has quit
      • shafjac joined the channel
      • zeki893 has quit
      • funix
        whack: that worked like a charm. But now I think i cannot use it for rate limiting. Basically with my logstash config i compute drop % only when I have metrics filter applied which happens only once in x seconds, (flush_interval => 1). So I cannot apply drop {} to all the other events. So ideally I would have to store this drop % value in some global variable which only gets updated when I have metrics filter applied to find rate. Makes sense
      • ?
      • ideopathic has quit
      • chifas joined the channel
      • zeki893 joined the channel
      • So in short I would like to compute rate of events every x seconds, compute by rate limiting percentage and then apply it using drop {} to all the forthcoming events. After x seconds compute the rate and update my rate limiting percentage accordingly .
      • topwobble has quit
      • pulpfiction has quit
      • rtoren joined the channel
      • topwobble joined the channel
      • daito joined the channel
      • NateBank has quit
      • pulpfiction joined the channel
      • topwobble has quit
      • llama052_ joined the channel
      • rsamuel has quit
      • rsamuel joined the channel
      • achan has quit
      • JahBurn has quit
      • [jason]
        do any of you know what this means?
      • Jul 30, 2015 1:51:32 AM org.elasticsearch.discovery.zen.ZenDiscovery handleNewClusterStateFromMaster
      • WARNING: [logstash-localhost-77573-13456] received cluster state from [[192.168.134.17][AearZQ34T0GXl4meKCxs3A][localhost][inet[/192.168.134.17:9300]]] which is also master but with a different cluster name [Cluster [1ba07c0a-9b8d-6e50-ce7d-9cf8e6b4ebd4]]
      • it is a cluster of one... seems like it found two masters?
      • whack
        funix: yeah you can't easily do that; maybe a custom filter or ruby filter could help
      • fev3r101 joined the channel
      • funix
        whack: i was looking at ruby filter. Din't see good examples. Can you store a global variable using it which applies to all the events ?
      • radiocats has quit
      • If I use - filter {ruby {code => "$drop_per = 50"}} , how can i access this variable in other filters ? %{drop_per} does not work .
      • whack
        yeah, though it's tricky to do in a thread safe way, but you can use $foo for global variables
      • or @foo for instance variables (local to the ruby filter)
      • so you could do like
      • pengin joined the channel
      • in the ruby filter, if the event is a metric, store the rate, if it's not a metric, choose to drop based on the rate
      • global var swould let you share data across multiple filters, but it introduces race conditions that make it not so safe
      • funix
        if I use $foo or @foo , how to access them in the drop filter ?
      • whack
        you can cancel them from your ruby filter
      • pengin has quit
      • failshell has quit
      • dranix joined the channel
      • zeki893 has quit
      • zeki893 joined the channel
      • rsamuel has quit
      • rsamuel joined the channel
      • jrklein has quit
      • jstoiko joined the channel
      • jrklein joined the channel
      • rsamuel has quit
      • chenryn joined the channel
      • llama052_ has quit
      • TomasNunez joined the channel
      • chakatz joined the channel
      • funix
        whack : easier way may be to do this externally fetching index statistics or something using a cron, compute rate limiting and set it to environment variable using export DROP_PERCENTAGE = <num> and then use "add_field_from_env" for every event in logstash to access this env variable and give it to drop {} ?
      • mikmcf has quit
      • adaam joined the channel
      • chakatz has quit
      • topwobble joined the channel
      • spuder has quit
      • pheaver joined the channel
      • llama052 joined the channel
      • breakingmatter joined the channel
      • breakingmatter has quit
      • vangap joined the channel
      • topwobble has quit
      • JinqiuYu joined the channel
      • predmijat has quit
      • predmijat joined the channel
      • chenryn has quit
      • zeki893 has quit
      • llama052 joined the channel
      • zeki893 joined the channel
      • SkyRocknRoll has quit
      • gentunian joined the channel
      • dendazen joined the channel
      • mdedetrich has quit
      • gutocarvalho has quit
      • chenryn joined the channel
      • mdedetrich joined the channel
      • chakatz joined the channel
      • chakatz has quit
      • zeki893 has quit
      • mdedetrich has quit
      • gentunian has quit
      • rwhavens joined the channel
      • jspeck joined the channel
      • JinqiuYu has quit
      • JinqiuYu joined the channel
      • JinqiuYu has quit
      • JinqiuYu joined the channel
      • JinqiuYu has quit
      • JinqiuYu joined the channel
      • rtoren joined the channel
      • icebourg joined the channel
      • icebourg has quit
      • icebourg joined the channel
      • icebourg has quit
      • icebourg joined the channel
      • gutocarvalho joined the channel
      • mikmcf joined the channel
      • malikeye- has quit
      • TomasNunez has quit
      • rwhavens has quit
      • JinqiuYu has quit
      • JinqiuYu joined the channel
      • chakatz joined the channel