New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elasticsearch-logging-handler

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-logging-handler

Minimalistic Elasticsearch logging handler

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

elasticsearch-logging-handler

This is a minimalistic Elasticsearch logging handler for python. This handler uses only url as an authentication method. For more robust authentication consider CMRESHandler.

Package on PyPI - https://pypi.org/project/elasticsearch-logging-handler/

Parameters for ElasticHandler:

NameTypeRequiredDefaultDescriptionExample
hoststrTrue-Url for Elasticsearch cluster. Currently, this handler support only basic authentication through providing user and password in the url.https://user:password@my-cluster.es:9200, https://my-cluster.es:9200
indexstrTrue-Name of the Index to write in.preprocessing-logs
levelintFalse0 (NOTSET)Minimal logging level for the handler. Handler will only process messages with level larger than this parameter.20, logging.WARNING
batch_sizeintFalse1000Size of the buffer that stores logs before sending to Elasticsearch. If buffer is full, send batch immediately, without waiting for the flush_period2000 - send batches of maximum size 2000
flush_periodfloatFalse1.0Period during which handler will accumulate logs into batch before sending it ot the cluster.10.0 - wait 10 seconds before sending
timezonestrFalseNoneTimezone for which to transform @timestamp for the record.'Europe/Amsterdam', 'Australia/Sydney'

ElasticHandler is nonblocking, meaning any logging call e.g. logging.exception will not block calling thread. which is useful in the case of high logging load.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc