Skip to content

Instantly share code, notes, and snippets.

package com.github.ibspoof.connection;
import com.datastax.driver.core.*;
import com.datastax.driver.core.policies.*;
import java.util.concurrent.TimeUnit;
public class ConnectionExample {
@ibspoof
ibspoof / 11-cassandra-filter.conf
Last active January 6, 2021 12:23
Grok Patterns and configuration for Cassandra logs
filter {
if [type] == "cassandralog" {
grok {
break_on_match => true
match => {
"message" => [
"%{CASS_COMPACTION_LARGE_KEY}",
"%{CASS_SLAB_POOL_CLEANER_1}",
"%{CASS_SLAB_POOL_CLEANER_2}",
[posturl]
enabled=1
# levels can be comma delimited list of any of the following:
# DEBUG,INFO,WARN,ERROR,CRITICAL,ALERT
# If left empty, will listen for all levels
levels=
# clusters is a comma delimited list of cluster names for which
# this alert config will be eligible to run.
@ibspoof
ibspoof / Gruntfile.js
Created April 27, 2013 23:02
Grunt 0.4 Gruntfile.js Example
/*global $:false */
var path = require('path');
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var folderMount = function folderMount(connect, point)
{
return connect.static(path.resolve(point));
};