{"id":20389592,"url":"https://github.com/tnfhrnsss/elasticsearch_log_notifier","last_synced_at":"2026-04-16T18:03:13.589Z","repository":{"id":209093379,"uuid":"723200686","full_name":"tnfhrnsss/elasticsearch_log_notifier","owner":"tnfhrnsss","description":"When an exception occurs in the logs accumulated in Elasticsearch, send a notification to a Slack channel.","archived":false,"fork":false,"pushed_at":"2024-01-08T11:01:46.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T23:45:12.489Z","etag":null,"topics":["elasticsearch","slack","slack-bot"],"latest_commit_sha":null,"homepage":"https://tnfhrnsss.github.io/docs/sub-projects/elasticsearch_log_notification/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tnfhrnsss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-24T23:25:00.000Z","updated_at":"2024-01-04T06:01:33.000Z","dependencies_parsed_at":"2025-01-15T09:39:59.179Z","dependency_job_id":"6aabe9cc-4f16-40ca-a3d6-cbf0255c2d40","html_url":"https://github.com/tnfhrnsss/elasticsearch_log_notifier","commit_stats":null,"previous_names":["tnfhrnsss/elasticsearch_log_notifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tnfhrnsss/elasticsearch_log_notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfhrnsss%2Felasticsearch_log_notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfhrnsss%2Felasticsearch_log_notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfhrnsss%2Felasticsearch_log_notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfhrnsss%2Felasticsearch_log_notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tnfhrnsss","download_url":"https://codeload.github.com/tnfhrnsss/elasticsearch_log_notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnfhrnsss%2Felasticsearch_log_notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31897870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T17:33:00.867Z","status":"ssl_error","status_checked_at":"2026-04-16T17:32:57.401Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["elasticsearch","slack","slack-bot"],"created_at":"2024-11-15T03:18:42.434Z","updated_at":"2026-04-16T18:03:13.547Z","avatar_url":"https://github.com/tnfhrnsss.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# When an exception occurs in the logs accumulated in Elasticsearch, send a notification to a Slack channel.\n\nThis application is designed to facilitate monitoring for the occurrence of exceptions.\n\n## Background\nIt was created to reduce the inconvenience of having to connect to the server and view the log every time an exception occurs, create an index with kibana, or search with elasticsearch viewer.\n\n\u003e [!IMPORTANT] \n\u003e Currently, the document structure is not easily customizable, but we plan to refactor it in the future so that it can be used with any document through simple configuration.\n\n## Requirements\n\n* This project requires Java 8 or later.\n* spring boot version 3.x\n* slack-api-client 1.29.2\n* elasticsearch-java 7.17.15\n\n## Usage\n\n* You can configure the elasticsearch ip and Slack details in the application.yml file.\n  * You cna choose delivery time schedule.\n    * You can set in detail which logs to filter. (Currently, the filter conditions are set as default according to the document structure of my project.)\n       ```\n        monitoring:\n          es:\n            search:\n              index: logs_\n              services: \"+atest +btest\"\n              max-count: 30\n              during-minutes: 2\n              message: \"*exception*\"\n              exclude-messages: \"+400\"\n              view-page-url: http://localhost:9200\n        ```\n    * For example, the above setting filters only data containing exceptions among messages that include service column values of 'atest' and 'btest' in documents starting with \"logs, \n    * but excludes messages containing '400' error. And a maximum of 30. \n    * The setting is “target and search in 2-minute increments.”\n\n  * run application\n      * build this project and run EsLogNotifierApplication.class\n      * [OR] java -jar es_log_notifier.jar\n      * execute api\n        ```\n          curl -X POST 'http://localhost:8080/eslog/notify'\n        ```\n  * [OR] you can use spring schedule. you just set the job time.\n    ```\n       jobs:\n         cronSchedule: \"0 0/2 * * * 1-5\"\n    ```\n\n## Output snapshot\n* slack message\n  \n    ![slack_message](https://tnfhrnsss.github.io/docs/sub-projects/img/es_log_notifier_message.png)\n\n* detail log view\n![slack_log_detail](https://tnfhrnsss.github.io/docs/sub-projects/img/es_log_detail_view.png)\n\n\n## Blog reference\n\nFor further reference, please consider the following sections:\n\n* [blog](https://tnfhrnsss.github.io/docs/sub-projects/elasticsearch_log_notification/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnfhrnsss%2Felasticsearch_log_notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftnfhrnsss%2Felasticsearch_log_notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnfhrnsss%2Felasticsearch_log_notifier/lists"}