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 sys, getopt | |
import SimpleHTTPServer, SocketServer | |
import datetime, time | |
import logging | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer | |
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): | |
def log_message(self, format, *args): | |
open(logfile, "a").write("%s - - PythonWebApp - - [%s] %s\n" % | |
(self.address_string(), |
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
{ | |
"ID": "", | |
"Name": "Python Web Server", | |
"Description": "Python Web Server", | |
"Services": [ | |
{ | |
"Name": "Python Web Server", | |
"Command": "", | |
"Description": "Python Web Server", | |
"Tags": null, |
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
{ | |
"ID": "", | |
"Name": "Python Web Server", | |
"Description": "Simple Python web server", | |
"Services": [ | |
{ | |
"Name": "webserver", | |
"Command": "", | |
"Description": "Python web server", | |
"Tags": null, |
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
# you can override this using by setting a system property, for example -Des.logger.level=DEBUG | |
es.logger.level: INFO | |
rootLogger: ${es.logger.level}, console, file | |
logger: | |
# log action execution errors for easier debugging | |
action: DEBUG | |
# reduce the logging for aws, too much is logged under the default INFO | |
com.amazonaws: WARN | |
# gateway |
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
##################### Elasticsearch Configuration Example ##################### | |
# This file contains an overview of various configuration settings, | |
# targeted at operations staff. Application developers should | |
# consult the guide at <http://elasticsearch.org/guide>. | |
# | |
# The installation procedure is covered at | |
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
# | |
# Elasticsearch comes with reasonable defaults for most settings, |
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
input { | |
######### To test supervisord items | |
#stdin { | |
# add_field => { "program" => "supervisord" } | |
#} | |
syslog { | |
port => 5514 | |
type => syslog | |
} | |
file { |
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
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes 1; | |
daemon off; | |
error_log /var/log/nginx/error.log; | |
#error_log /var/log/nginx/error.log notice; |
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
{ | |
"Command": "/usr/sbin/nginx", | |
"Endpoints": [ | |
{ | |
"Name": "http", | |
"Application": "http", | |
"PortNumber": 80, | |
"Protocol": "tcp", | |
"Purpose": "export", | |
"AddressConfig": { |
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
{ | |
"Command":"/usr/share/elasticsearch/bin/elasticsearch -f -p /var/run/elasticsearch/elasticsearch.pid -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/elasticsearch -Des.default.path.conf=/etc/elasticsearch", | |
"Endpoints": [ | |
{ | |
"Name": "http", | |
"Application": "elasticsearch", | |
"PortNumber": 9200, | |
"Protocol": "tcp", | |
"Purpose": "export" | |
}, |
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
{ | |
"Command": "/opt/logstash/bin/logstash agent -f /etc/logstash/conf.d/", | |
"Endpoints": [ | |
{ | |
"Name": "http", | |
"Application": "http", | |
"PortNumber": 9200, | |
"Protocol": "tcp", | |
"Purpose": "import" | |
}, |
NewerOlder