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/local/bin/perl | |
#--------- | |
# LogglySender v0.1 | |
# Sends log lines from Apache to Loggly via an HTTP input | |
# http://wiki.loggly.com/ | |
#--------- | |
# IMPORTANT: Be sure to make this script executable! | |
# (e.g. "chmod +x logglysender.pl") | |
#--------- | |
use LWP::UserAgent; |
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
import json | |
import sys | |
import urllib2 | |
''' | |
Auto-authenticate Syslog TCP inputs. | |
Usage: python inputs.py -u user -p pass -s subdomain | |
''' | |
state = None |
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
{ | |
"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", |
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
{ | |
"numFound": 1484, | |
"gap": "+30MINUTES", | |
"gmt_offset": "-0700", | |
"start": 0, | |
"context": { | |
"rows": null, | |
"from": "NOW-1DAY/HOUR", | |
"until": "NOW+1HOUR/HOUR", | |
"start": 0, |
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
[ | |
{ | |
"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", |
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
{ | |
"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" |
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
{ | |
"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, |
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
[ | |
{ | |
"name": "", | |
"ip": "24.4.108.196", | |
"input": [ | |
{ | |
"name": "zoto", | |
"id": 248 | |
}, | |
{ |
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
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 */ | |
} | |
} | |
}); |
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
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 |
OlderNewer