{"id":20635819,"url":"https://github.com/orsinium-labs/python-syslog-logstash","last_synced_at":"2025-04-15T21:25:48.333Z","repository":{"id":49648722,"uuid":"130980615","full_name":"orsinium-labs/python-syslog-logstash","owner":"orsinium-labs","description":"Python Logger + RSysLog + Logstash. Demo over docker containers.","archived":false,"fork":false,"pushed_at":"2018-05-11T11:43:01.000Z","size":22,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T01:34:14.128Z","etag":null,"topics":["django","docker","docker-compose","elasticsearch","elk","kibana","logging","logstash","python","redis","rsyslog","syslog"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orsinium-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-25T09:10:49.000Z","updated_at":"2022-08-11T06:37:27.000Z","dependencies_parsed_at":"2022-08-29T09:42:20.980Z","dependency_job_id":null,"html_url":"https://github.com/orsinium-labs/python-syslog-logstash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fpython-syslog-logstash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fpython-syslog-logstash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fpython-syslog-logstash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fpython-syslog-logstash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/python-syslog-logstash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155823,"owners_count":21221668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","docker","docker-compose","elasticsearch","elk","kibana","logging","logstash","python","redis","rsyslog","syslog"],"created_at":"2024-11-16T15:07:38.398Z","updated_at":"2025-04-15T21:25:48.314Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Python Syslog Logstash\n\nDemonstration of logging system for Python projects. Fast and safe logs collecting.\n\n## Scheme\n\n1. **Python project** -- sent logs.\n1. **Rsyslog** -- collect logs from projects (can be many rsyslogs on many servers).\n1. **Redis** -- message queue between rsyslog and logstash.\n1. **Logstash** -- retrieve data from Redis, select index and add into ElasticSearch.\n1. **ElasticSearch** -- logs storage.\n1. **Kibana** -- web-interface.\n\n## Usage\n\n1. Run:\n    ```bash\n    sudo docker-compose up\n    ```\n1. Open Kibana: [127.0.0.1:5601/app/kibana](http://127.0.0.1:5601/app/kibana)\n1. Go to Management -\u003e Index patterns.\n1. Click on \"refresh fields\". If \"create\" button still inactive then wait while ElasticSearch is ran.\n1. Click \"create\"\n1. Go to \"Discover\". This is your data :)\n\nIf you want to see indices then go to \"Dev Tools\" section and run this command:\n\n```http\nGET /_cat/indices\n```\n\n## Example\n\nExample of one log message from ElasticSearch:\n\n```json\n{\n    \"@timestamp\": \"2018-04-27T12:18:39.199Z\",\n    \"@version\": \"1\",\n    \"message\": {\n        \"name\": \"app_name\",\n        \"module\": \"app\",\n        \"lineno\": 79,\n        \"message\": null,\n        \"random_string\": \"ydrvlhdruj\",\n        \"random_integer\": 302\n    },\n    \"facility_label\": \"user\",\n    \"facility\": \"1\",\n    \"hostname\": \"pythonsysloglogstash_psl-project_1.pythonsysloglogstash_default\",\n    \"program\": \"\",\n    \"relayhost\": \"pythonsysloglogstash_psl-project_1.pythonsysloglogstash_default\",\n    \"relayip\": \"172.21.0.7\",\n    \"severity_label\": \"crit\",\n    \"severity\": \"2\",\n    \"tag\": \"\",\n    \"type\": \"syslog\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fpython-syslog-logstash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Fpython-syslog-logstash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fpython-syslog-logstash/lists"}