This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker file to create a CentOS StatsD host. | |
# This uses Elasticsearch as a backend rather than Graphite/Carbon. | |
# Depends on having an Elasticsearch container. | |
FROM centos:centos6 | |
MAINTAINER Gary Rogers <gary-rogers@uiowa.edu> | |
# Install things as root | |
USER root | |
RUN \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ $(yum repolist | grep -c ^epel) -eq 0 ]; then | |
printf "[bootstrap] Adding EPEL Repo\n"; | |
yum --quiet -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
fi | |
# =================================================================== | |
# Install python if it doesn't exist. | |
# =================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Monolog\Handler; | |
use Monolog\Logger; | |
use Monolog\Formatter\LineFormatter; | |
// https://github.com/Seldaek/monolog/blob/master/doc/extending.md | |
class OracleHandler extends AbstractProcessingHandler { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE | |
MONOLOG | |
( | |
ID NUMBER(11) NOT NULL, | |
LOG_TIME TIMESTAMP(6), | |
LOG_LEVEL VARCHAR2(20), | |
LOG_HOSTNAME VARCHAR2(512), | |
LOG_USER VARCHAR2(30), | |
LOG_IP VARCHAR2(45), | |
LOG_MESSAGE CLOB, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="myproject" default="build" basedir="."> | |
<property name="build" value="${basedir}/build"/> | |
<property name="build.src" value="${build}/src"/> | |
<target name="clean"> | |
<delete dir="${build}" /> | |
</target> | |
<target name="init"> | |
<mkdir dir="${build}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MONOLOGTIME \[%{TIMESTAMP_ISO8601:timestamp}\] | |
MONOLOGLEVEL \[%{LOGLEVEL:level}\] | |
MONOLOGCONTEXT \[context:%{DATA:context}\] | |
MONOLOGEXTRA \[extra:%{DATA:extra}\] | |
MONOLOG %{MONOLOGTIME} %{MONOLOGLEVEL} %{MONOLOGCONTEXT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELASTICSEARCHTIME \[%{TIMESTAMP_ISO8601:timestamp}\] | |
ELASTICSEARCHLEVEL \[%{LOGLEVEL:level}\s+\] | |
ELASTICSEARCHSERVICE \[%{DATA:service}\s+\] | |
ELASTICSEARCHVERSION \[%{DATA:version}\] | |
ELASTICSEARCHLOG %{ELASTICSEARCHTIME}%{ELASTICSEARCHLEVEL}%{ELASTICSEARCHSERVICE} %{ELASTICSEARCHVERSION} %{GREEDYDATA:mymessage} |
NewerOlder