#logstash

/

      • Tyr-Heimdal
        when I entered the date match the config failed
      • yybel
        paste the config somewhere if you can
      • pawnbox joined the channel
      • Tyr-Heimdal
        I have a pastebin with the config in if you could spare a minute?
      • logstashbot
        Title: Having trouble doing 2 things: 1) Get the timestamp from the CSV to be @timesta - Pastebin.com (at pastebin.com)
      • Tyr-Heimdal
        I'm updating with the date match now
      • yybel
        the if statement seems wrong
      • just put if [timestamp]
      • oh
      • Darcidride joined the channel
      • didnt read through, i though that was condition to get the date
      • Tyr-Heimdal
        I had the date { match => [ "timestamp", "UNIX_MS" ] }
      • under the last mutate statement
      • that made the config fail
      • yybel
        was there any other error
      • did you use the configtest
      • Tyr-Heimdal
        No. I'm new to logstash/elk, and got it up and running through a docker container I found
      • Norrland
        Speaking of timestamps. "YYYY-MM-dd HH:mm:ss.SSS", will that match a timestamp with more than 3 digits in the millisecond part?
      • Tyr-Heimdal
        Norrland: don't hijack my thread :P
      • ^^
      • yybel
        there can be only 1000 milliseconds in a second :) i dont know if it takes smaller fractions than milliseconds
      • Norrland
        yybel: true. Some applications have more fine-grain timestamps with HH:mm:ss.SSSSSS :)
      • hugh_jass has quit
      • hugh_jass joined the channel
      • Tyr-Heimdal: no date {} part in your config?
      • brokencycle has quit
      • logstashbot
      • Tyr-Heimdal
      • logstashbot
        Title: input { lumberjack { port => 5043 ssl_certificate => "/etc/ssl/logs - Pastebin.com (at pastebin.com)
      • Tyr-Heimdal
        This is my current config, that broke
      • it has the date part
      • gives me _csvparsefailure
      • yybel
        so it gives the error at runtime?
      • Tyr-Heimdal
        if I remove the date-part, it parses the logs but ofc gives me the epoch as a number field
      • yeah
      • yybel
        try renaming the timestamp in your csv and date filter to something else like epoch_time
      • i dont know if its mad because the name is almost same as @timestamp
      • its weird that its csvparsefailure
      • Norrland
        Tyr-Heimdal: ah.
      • Tyr-Heimdal
        same csvparsefailure
      • yybel
        on all events?
      • hey
      • its the conversion to integer maybe
      • maybe it must be string
      • Tyr-Heimdal
        it only leaves 2 events from thousands
      • if I remove the date part, I get thousands of events
      • yybel
        oh, date filter doc says unix_ms parses int value
      • Tyr-Heimdal
        yeah, read somewhere that it should be int
      • yybel
        try anyways
      • Tyr-Heimdal
        same result. gives 2 entries
      • yybel
        is there anything in logstash logs
      • Tyr-Heimdal
        i guess I need to have something in the output-part for that..?
      • yybel
        no theres something in /var/log/logstash.log and .err
      • and .stdout
      • Tyr-Heimdal
        INFO: [logstash-148599b191b4-8-12176] started
      • {:timestamp=>"2016-06-29T09:40:00.629000+0000", :message=>"Trouble parsing csv", :source=>"message", :raw=>"", :exception=>#<NoMethodError: undefined method `each_index' for nil:NilClass>, :level=>:warn}
      • {:timestamp=>"2016-06-29T09:40:00.741000+0000", :message=>"Trouble parsing csv", :source=>"message", :raw=>"", :exception=>#<NoMethodError: undefined method `each_index' for nil:NilClass>, :level=>:warn}
      • only stdout.log there
      • yybel
        is your csv string in message field originally?
      • Tyr-Heimdal
        if I remove the date-part, then it populates the message field with the original lines, yes
      • yybel
        try putting some trash filter before the csv filter
      • if ([message] =~ /^#/ or [message] == "") { drop{} }
      • pfallenop has quit
      • tbaror
        Hello, can anyone in here help me with design advise, i have question regarding logstash/elasticsearch scale to accommodate large volume message , i am in process of building security event center that will get mostly syslog from firewalls ,switch, and winlogbeats what is most recommended for given scenario what is the message volume to consider using kind of queue management , or there is tweak on logstash or elasticsearch side
      • yybel
        still weird that nothing goes through when date filter is there
      • are you checking the output from elasticsearch?
      • Tyr-Heimdal
        you mean where do I get my errors/conclusions from?
      • yybel
        yeah
      • Tyr-Heimdal
        kibana
      • so, yeah
      • yybel
        does elasticsearch have some errors about incoming events
      • for logstash debugging its good to use output stdout
      • then tail the stdout logfile
      • Tyr-Heimdal
        so, with that filter you gave me, it still processes everything like it should
      • if I re-add date after csv, it fails
      • I have to say it's a good feeling that it wasn't an easy fix ^^
      • yybel
        :)
      • Tyr-Heimdal
        on the other hand...if it was a quick fix...this "#%£$€ would be working now :P
      • pfallenop joined the channel
      • pfallenop has quit
      • pfallenop joined the channel
      • Xylakant has quit
      • yybel
        i tried your data and config and it works for me
      • maybe the input is somehow messed because i used stdin input
      • hugh_jass has quit
      • hugh_jass joined the channel
      • Tyr-Heimdal
        I'll open the file in an editor and double check if there are anything hidden in it
      • yybel
        http://pastebin.com/u9P0xePt thats what i got out of it with the sample data you had in pastebin
      • logstashbot
        Title: [JSON] { "message" => "1465992921014,,29862.2,74,131,170,62.827533,12.805496,0 - Pastebin.com (at pastebin.com)
      • Tyr-Heimdal
        that's just horribly annoying
      • nope, no whitespaces, no special chars or anything else
      • and that was just a duplicate of my config file?
      • yybel
        changed input to stdin and output to stdout
      • otherwise the same
      • Tyr-Heimdal
        that shouldn't be significant, right..?
      • yybel
        no unless lumberjack contains already some field information
      • but if you get all the same fields as in that paste except for the @timestamp being wrong then it shouldnt be the issue
      • Tyr-Heimdal
        i do
      • yybel
        do the output stdout at least for better debugging
      • you get the info out of events that dont make it to elasticseach
      • Tyr-Heimdal
        I'll look into that
      • thanks!
      • how about the geo-issue? got any input there?
      • yybel
        kibana map doesnt work?
      • Tyr-Heimdal
        right
      • yybel
        im using geoip filter and it creates array named location with two number values for lat and lng
      • Tyr-Heimdal
        I get this output "location": {
      • "lon": 12.80557,
      • "lat": 62.827551
      • }
      • could it be that easy...that it's called lon instead of lng?
      • yybel
        my data doesnt have those field names
      • just two values in an array for location
      • fatdragon joined the channel
      • yours seems to be valid way too
      • maybe you need to also convert location field into "geo_point"
      • you have location.lat and location.lon as float but location is something default
      • notebox joined the channel
      • Tyr-Heimdal
        meaning..?
      • yybel
        or maybe im totally lost
      • i dont think logstash understands that geo_point type
      • fatdragon has quit
      • so. if you check in kibana settings and indices the list of fields i guess the location field is not geo_point type
      • Tyr-Heimdal
        that's correct
      • so how do I make that happen
      • ?
      • yybel
        i suppose you have to edit elasticsearch index template for logstash
      • Tyr-Heimdal
        ok. I'll look into that
      • thanks for all your help! Allways nice to talk to people willing to help out :D
      • yybel
        http://pastebin.com/gRMLZmqL theres one example how the template looks like with geopoint type
      • logstashbot
        Title: [JSON] template - Pastebin.com (at pastebin.com)
      • yybel
        you can ask more at #elasticsearch :)
      • Tyr-Heimdal
        awesome! :D
      • abk joined the channel
      • Julinux joined the channel
      • DevRelIrcBot joined the channel
      • hugh_jass has quit
      • hugh_jass joined the channel
      • optiz0r has quit
      • Xylakant joined the channel
      • optiz0r joined the channel
      • optiz0r has quit
      • optiz0r joined the channel
      • jefrite has quit
      • sarkis joined the channel
      • sarkis has quit
      • rem5 has quit
      • hugh_jass has quit