Press “s”
for speaker notes
index.mapping.ignore_malformed
Filtering proxy vulcan
indices.fielddata.cache.size: 40%gateway.expected_nodesdiscovery.zen.minimum_master_nodesc.r.a.node_concurrent_recoveries (2)c.r.a.cluster_concurrent_rebalance (2)indices.recovery.max_bytes_per_sec (20M)indices.recovery.concurrent_streams (3)
sshtail -fsudo tail -F
import logging
import socket
import warnings
from udplog.udplog import UDPLogger, UDPLogHandler
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
logging.captureWarnings(True)
udplogger = UDPLogger(defaultFields={
'appname': 'example',
'hostname': socket.gethostname(),
})
root = logging.getLogger()
root.setLevel(logging.DEBUG)
root.addHandler(UDPLogHandler(udplogger, category="python_logging"))
logger.debug("Starting!")
logger.info("This is a simple message")
logger.info("This is a message with %(what)s", {'what': 'variables'})
extra_logger = logging.LoggerAdapter(logger, {'bonus': 'extra data'})
extra_logger.info("Bonus ahead!")
a = {}
try:
print a['something']
except:
logger.exception("Oops!")
warnings.warn("Don't do foo, do bar instead!", stacklevel=2)
{
"appname": "example",
"category": "python_logging",
"excText": "Traceback (most recent call last):\nFile \"doc/examples/python_logging.py\", line 39, in main\nprint a['something']\nKeyError: 'something'",
"excType": "exceptions.KeyError",
"excValue": "'something'",
"filename": "doc/examples/python_logging.py",
"funcName": "main",
"hostname": "localhost",
"lineno": 41,
"logLevel": "ERROR",
"logName": "__main__",
"message": "Oops!",
"timestamp": 1379508311.437895
}