Skip to content

Instantly share code, notes, and snippets.

Avatar

Leila Tudury ltudury

View GitHub Profile
@ltudury
ltudury / actionscript_to_loggly.as
Last active Dec 21, 2015
Sample snippet of ActionScript code to send events to Loggly
View actionscript_to_loggly.as
package {
import flash.display.Sprite;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
@ltudury
ltudury / nxlog_loggly.conf
Last active Jan 14, 2020
NXLog configuration that can be used to send Windows events to Loggly. Include your unique customer token where specified.
View nxlog_loggly.conf
## This is a sample NXLog configuration file created by Loggly. June 2013
## See the nxlog reference manual about the configuration options.
## It should be installed locally and is also available
## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
View syslog_with_stripping
uc_insert: Value too old: name =  i-d55fbbbe/df/df-dev-shm; value time = 1266363202; last cache update =  1266363202;
View apacheLogSample_with_stripping
10.214.46.230 - - [16/Feb/2010:15:33:42 -0800] "GET /wp-content/themes/optimize/includes/js/reflectionXXX.js HTTP/1.1" 404 2326 "http://www.loggly.org/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10" KgR2G66BhkYAAEcPAwYAAAAD 228199
@ltudury
ltudury / gist:1636674
Created Jan 19, 2012
Loggly Custom Command Structure
View gist:1636674
loggly.bark.external_command({ /*VERY IMPORTANT, this is what allows your command to be loaded */
CommandName: { /*Towards the beginning when you used colormodified.js example...this was labeled **change** */
run: function ( args, stdin, context ) {
/* what you want your command to do with piped parameters */
}
}
});
@ltudury
ltudury / gist:1636524
Created Jan 18, 2012
Device: JSON output
View gist:1636524
[
{
"name": "",
"ip": "24.4.108.196",
"input": [
{
"name": "zoto",
"id": 248
},
{
@ltudury
ltudury / gist:1636518
Created Jan 18, 2012
Input Request: JSON output
View gist:1636518
{
"name": "myinput",
"service": {
"name": "syslogtcp",
"display": "Syslog TCP"
},
"created": "2011-02-10 19:05:06",
"discover": true,
"discover_time": "2011-02-10 19:05:06",
"id": 416,
@ltudury
ltudury / gist:1636513
Created Jan 18, 2012
HTTP Input: JSON output
View gist:1636513
{
"name": "httptest",
"service": {
"name": "HTTP",
"display": "HTTP"
},
"created": "2011-01-07 19:41:33",
"input_token": "9076bdc4-9ed7-403a-9c85-f02da2404054",
"id": 337,
"description": "This is an HTTP input"
@ltudury
ltudury / gist:1636509
Created Jan 18, 2012
Input: JSON output
View gist:1636509
[
{
"name": "syslog",
"service": {
"name": "syslogudp",
"display": "Syslog UDP"
},
"created": "2010-09-09 20:19:47",
"discover": false,
"discover_time": "2010-10-25 20:30:56",
@ltudury
ltudury / gist:1636505
Created Jan 18, 2012
Facet JSON output
View gist:1636505
{
"numFound": 1484,
"gap": "+30MINUTES",
"gmt_offset": "-0700",
"start": 0,
"context": {
"rows": null,
"from": "NOW-1DAY/HOUR",
"until": "NOW+1HOUR/HOUR",
"start": 0,