Graylog2 - anyone using it?

Status
Not open for further replies.

hutchingsp

Ars Tribunus Angusticlavius
6,875
I've setup a Graylog2 virtual appliance and frankly I'm fucking blown away at just how much insight you can get into what's going on in your environment by firing all your syslog traffic at it.

Does anyone have any historical experience of what is good practise, what is bad practise, what works, what doesn't work etc. please?

We don't do much in the way of centralised logging so my initial thoughts are to use an CNAME such as "syslog.domain.local" that clients point to and have this alias the actual box(es) we use.

Other than that I'm open to any feedback/advice from folks who've done this before - there's nothing regulatory here it's simply because being able to correlate a lot of logs from a lot of devices at a given time should be very useful in the event of an issue.
 

Paladin

Ars Legatus Legionis
33,855
Subscriptor
I setup a splunk server for much the same reason but it quickly became obvious that without both someone who has a primary role to look at it, tweak it and use it, and a large amount of money to license the amount of data flow we need to use it for everything, it was only basically a nice search interface for syslog data from a selection of our routers. :(

Given that what we were hoping to get from Splunk was some basic alerting for a few scenarios (mostly we have good monitoring for a lot already) and then just some interesting insights into trends or maybe a historical view for knowing when something happened later on, paying literally tens of thousands of $$ a year for that did not happen. Especially when we would need an employee to devote time to making the most of it after it is licensed.

I've been looking at Logstash and Kibana as an alternative. I looked at greylog before there was a 2 attached to it and it seemed quite rickety at that point. The biggest issue for me was the use of Java. Anything that uses Java has an automatic black mark on it's Cons column for me. It's just to difficult to use in an open source environment when there are other options that don't require it. That's just personal preference though.

Once of the big missing items I don't know if you can now do with Greylog2 was easy and reliable alerting based on log data. Have you tried that?
 
I've limited experience with Splunk, the ELK stack and Graylog2.

Splunk is the one that everyone compares against, and if cost was not a consideration, it would be the de facto choice for me. Everything seems to have a Splunk plugin, so it becomes very easy to get data in. Over recent releases, it appears to have become more focussed on big data analytics vs the older centralised infrastructure logging emphasis.

Having said that, the price of Splunk is the killer. It's costed based on the amount of data it consumes per day. So given my comment above that it's easy to get data into it, the data consumption can be huge. The price can similarly be [x-box] huge!

The ELK stack (Elasticsearch/Logstash/Kibana) certainly looks good, but when I evaluated it, it lacked built in security features to protect the log data. The focus seems to be on helping developers drill down into data, which is good, but I've not seen much to show more general infrastructure logging. Not sure about the import capabilities either.

Graylog2 seems to be maturing nicely. The old version was a big flaky, but the latest releases (pre-1.0 though) are looking much better. Of all the above systems, I'm seriously considering Graylog2 because of it's price, but also because it seems to have a growing list of plugins for web servers, database servers etc.

I'd be interested in the experiences of others in what centralised logging/reporting they're doing.
 

Sunner

Ars Praefectus
4,994
Subscriptor++
We have a reasonably sized GL2 stack here, about 2-3k messages/second and as you might imagine a constantly growing document store in ES, in fact if I weren't getting flooded with other crap right now I'd be working on a migration to a new ES cluster.

It's been working fine for the most part since the 0.20 series, I haven't really ran into any obvious bugs from what I can recall. That being said once you reach a reasonable volume of messages it'll probably be well worth your time tuning both GL2 and ES quite a bit, our instance used to be constantly overloaded until I spent some time tuning both some streams and a bunch of config/JVM options.

The easiest way to fuck yourself over is probably to use bad regex's in streams or other filters, it'll kill your performance in a hurry if you have a good amount of msg/sec, so time spent tuning that is time well spent.
The nice thing is that since both GL2 and ES grow horizontally so easily it's pretty hard to paint yourself into a corner, so I'd say this is one of those few cases where you can actually get away with making it up as you go.

I can't really think of any particular landmines that I stepped on with all of this, so I don't really have any "words of wisdom" for you. Just keep track of ES garbage collection stats, if your servers become heavily loaded the old-GC pauses can become long enough for the nodes to start randomly disconnecting from the cluster which is bad. ES will log excessively long GC's and you can watch it with things like Marvel.
Also, VisualVM and the VisualGC plugin are lifesavers for tuning the JVM options.
 

C0rinthian

Ars Tribunus Angusticlavius
6,858
We use Splunk at my org, and have had no problems justifying the cost. It doesn't hurt that one of our primary use cases is their Enterprise Security module, which is ridiculously awesome. Our security team threw down $500k without blinking after seeing the demo. (The cost was really comparable to other SEIMs solutions they were considering, so it was really a no-brainer for them) For context, I think now we're at 150GB/day indexing, so we're at a scale where efficiency really kicks in.

Splunk gets hard to justify when you're looking at small/limited use cases. That would be my biggest criticism. The product itself is all kinds of awesome.
 

C0rinthian

Ars Tribunus Angusticlavius
6,858
Minimum: 1GB/day for $900/year (or an $1,800 one-time fee with $360/year support contract)
Maximum: 20GB/day for $12,000/year. (or a $24k one-time fee with $4,800/year support contract)

These are limited to single-server deployments (Which is appropriate for the data volume) and 5 users, but otherwise appears to be the full enterprise product.

EDIT: Light vs. Enterprise comparison chart: http://www.splunk.com/en_us/products/sp ... prise.html
 

C0rinthian

Ars Tribunus Angusticlavius
6,858
[url=http:/civis/viewtopic.php?p=28644913#p28644913:troydoxz said:
jregel[/url]":troydoxz]Thanks for the heads up on Splunk Light. This might be just what we're looking for (and can afford!).

Do you know what the price points are between 1GB/day and 20GB/day? Is that published anywhere?

If you click the purchase button, you get a grid to select from which shows all the options. (It's just a web ordering form)

EDIT: Here's a screenshot of the grid.

qRyx5AV.png
 

Sunner

Ars Praefectus
4,994
Subscriptor++
Heh, we're way over the limit for the cheapo license, I don't even want to think about what we'd be paying for Splunk. Speaking of logging though, I finally got around to finishing the new Graylog(they released 1.0 and correctly observed that Graylog2 1.0 would look stupid so they ditched the 2) + Elasticsearch cluster, and some initial tuning aside it's working very well now.
4 ES nodes with ~2 TB of disk each sitting behind 4 Graylog nodes. Now to see how many days/weeks of log retention that can give us.

About alerting and such, we pull some stuff from Graylog via the API and do some alerting and metrics presentation that way. The documentation is bullshit though, a friendly mailing list alleviates this somewhat, but it'd be nice to have non-shit docs as well.
 
Status
Not open for further replies.