Skip to content

Instantly share code, notes, and snippets.

View ltudury's full-sized avatar

Leila Tudury ltudury

View GitHub Profile
@ltudury
ltudury / nxlog_loggly.conf
Last active January 14, 2020 20:29
NXLog configuration that can be used to send Windows events to Loggly. Include your unique customer token where specified.
## 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
@ltudury
ltudury / actionscript_to_loggly.as
Last active December 21, 2015 08:18
Sample snippet of ActionScript code to send events to Loggly
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;
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 / syslog_with_stripping
Created March 15, 2012 21:21
Syslog Example Logs
uc_insert: Value too old: name =  i-d55fbbbe/df/df-dev-shm; value time = 1266363202; last cache update =  1266363202;
@ltudury
ltudury / gist:1636509
Created January 18, 2012 23:29
Input: JSON output
[
{
"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 January 18, 2012 23:28
Facet JSON output
{
"numFound": 1484,
"gap": "+30MINUTES",
"gmt_offset": "-0700",
"start": 0,
"context": {
"rows": null,
"from": "NOW-1DAY/HOUR",
"until": "NOW+1HOUR/HOUR",
"start": 0,
@ltudury
ltudury / gist:1636674
Created January 19, 2012 00:10
Loggly Custom Command Structure
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:1636489
Created January 18, 2012 23:24
Loggly Search: JSON output
{
"data": [
{
"timestamp": "2010-02-17 02:08:45.912-0700",
"inputname": "solrclient",
"ip": "127.0.0.1",
"text": "btpool0-87 SolrCore.execute INFO: [repo_6] webapp=/solr path=/select/ params={sort=timestamp+desc&start=0&q=404&version=2.2&rows=100} hits=7182 status=0 QTime=0 \n",
},
{
"timestamp": "2010-02-17 02:08:29.123-0700",
@ltudury
ltudury / gist:1636524
Created January 18, 2012 23:31
Device: JSON output
[
{
"name": "",
"ip": "24.4.108.196",
"input": [
{
"name": "zoto",
"id": 248
},
{
@ltudury
ltudury / gist:1636518
Created January 18, 2012 23:31
Input Request: JSON output
{
"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,