Skip to main content

log from celery to logstash and structured log

Project description

# celstash
Celery logging to logstash and sturctured log (JSON) file

Please submit bugs [here](https://github.com/CyberInt/celstash/issues).

# Usage

import celstash
import logging

logger = celstash.new_logger('worker1', logstash_host='example.com')
logger.setLevel(logging.INFO)
logger.info('Money is the root of all evil, and man needs roots.')


# logstash setup

input {
udp {
codec => json
}
}
output {
elasticsearch {
host => localhost # Change to your host
}
}

# License
MIT, see [LICENSE.txt](LICENSE.txt)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celstash-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file celstash-0.1.0.tar.gz.

File metadata

  • Download URL: celstash-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for celstash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8b197f8c1faaf33ac806c22b80fb7048207fd6143c86814e5559062b5396938
MD5 09d37721e5d0179ee3a88fa63bfc7c0c
BLAKE2b-256 ae56b9a77a93f5557ee28d6f7c10375a3347713ccf13d98ba70e8fbaa844926b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page