Skip to content

Instantly share code, notes, and snippets.

View anthonygtellez's full-sized avatar

Anthony Tellez anthonygtellez

View GitHub Profile
Install EPEL for the addiitonal YUM Repos:
$ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Use yum to install the rpm into the local system:
$ yum locallinstall epel-release-latest-7.noarch.rpm
Syslog-ng requires the libnet dependency:
<form script="custom_vizs:autodiscover.js" stylesheet="dark.css">
<label>USC SourceFire Geographical Intelligence</label>
<fieldset submitButton="true">
<input type="time" token="v_time" searchWhenChanged="true">
<label>Time</label>
<default>
<earliest>-24h@h</earliest>
<latest>now</latest>
</default>
</input>
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@anthonygtellez
anthonygtellez / setdefaultoken.js
Created June 1, 2015 05:12
Set Default token in splunk on page load
require(['splunkjs/ready!'], function(mvc) {
var tokens = mvc.Components.get('default');
tokens.set('myToken', 'initialValue');
});
@anthonygtellez
anthonygtellez / syslog-ng.conf
Last active September 21, 2023 19:51
syslog-ng filter by port, create a folder for daily message
@version:3.2
# ===============================================================================================
# Configuration file for syslog-ng, customized for remote logging
# ===============================================================================================
# Options
# Note about $HOST / HOST
# Description: The name of the source host where the message originates from.
# If the message traverses several hosts and the chain_hostnames() option is on, the first host in the chain is used.
# If the keep_hostname() option is disabled (keep_hostname(no)), the value of the $HOST macro will be the DNS hostname of the host that sent the message to syslog-ng OSE (that is, the DNS hostname of the last hop). In this case the $HOST and $HOST_FROM macros will have the same value.
@version:3.2
# ===============================================================================================
# Configuration file for syslog-ng, customized for remote logging
# ===============================================================================================
# Options
# Note about $HOST / HOST
# Description: The name of the source host where the message originates from.
# If the message traverses several hosts and the chain_hostnames() option is on, the first host in the chain is used.
# If the keep_hostname() option is disabled (keep_hostname(no)), the value of the $HOST macro will be the DNS hostname of the host that sent the message to syslog-ng OSE (that is, the DNS hostname of the last hop). In this case the $HOST and $HOST_FROM macros will have the same value.