Log Server Internal Logs parsefailure

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Log Server Internal Logs parsefailure

Post by CFT6Server »

So I haven't checked one of our NLS instance and looks like it had stopped working. Once I restarted the server (single node instance), I started seeing import_json/jsonparsefailure messages for local logs. I don't think anything have changed here, so any ideas?

The host field also looks suspicious.
importjson.png
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Log Server Internal Logs parsefailure

Post by mcapra »

Can you share your inputs and filters on this instance?

Also what is suspicious about the host field? Are you expecting a host other than localhost?
Former Nagios employee
https://www.mcapra.com/
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Log Server Internal Logs parsefailure

Post by CFT6Server »

I do find the host field odd as well. No additional configuration was done for any localhost syslogs.

Config attached. (FYI - I removed part of the config to remove some hostnames etc)
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Log Server Internal Logs parsefailure

Post by mcapra »

Are these entries persisting through multiple indices?

I would do a tcpdump on the import_json port (2057) and see what sort of traffic is coming in through that port. tcpdump -i eth0 'port 2057' changing eth0 to reflect the logical name of the network interface. Very strange that a syslog message would make it through that path.

And at the risk of sounding like a broken record: Can you show us your elasticsearch log? Feel free to PM it to me if you have security concerns. It should be located at /var/log/elasticsearch/<cluster id>.log
Former Nagios employee
https://www.mcapra.com/
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Log Server Internal Logs parsefailure

Post by eloyd »

Your host field is the localhost in IPv6 notation. Nothing weird about that unless it's incorrect. I'm confused about your filters though. I see you're doing raw json input for what looks like syslog input (literally, this looks like output from /var/log/syslog or /var/log/messages) so I'm not sure why you're doing that. Short of knowing what the specific input host really is (I have to assume that IPv6 localhost is correct) then it appears that none of your filters are actually triggering, since the type and tags and host don't match any of your filter matches.

You also do this a lot:

Code: Select all

       if "_grokparsefailure_sysloginput" in [tags]{
            mutate {
               remove_tag => ["_grokparsefailure_sysloginput"]
            }
        }
Which, I understand, but I'm not sure. Why not fix the grokparse failure instead of remove the warning message, and even so, you can just ignore it if you're not going to fix it.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Log Server Internal Logs parsefailure

Post by tmcdonald »

@eloyd thanks as always for the input!
Former Nagios employee
Locked