{"id":21994389,"url":"https://github.com/codelibs/logana","last_synced_at":"2026-05-01T02:32:09.389Z","repository":{"id":62576657,"uuid":"299914486","full_name":"codelibs/logana","owner":"codelibs","description":"Search/Recommend Log Analysis System","archived":false,"fork":false,"pushed_at":"2021-06-26T06:41:58.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-04-25T23:15:46.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codelibs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-30T12:39:49.000Z","updated_at":"2021-06-26T06:42:00.000Z","dependencies_parsed_at":"2022-11-03T19:07:11.840Z","dependency_job_id":null,"html_url":"https://github.com/codelibs/logana","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codelibs/logana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Flogana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Flogana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Flogana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Flogana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelibs","download_url":"https://codeload.github.com/codelibs/logana/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Flogana/sbom","scorecard":{"id":296678,"data":{"date":"2025-08-11","repo":{"name":"github.com/codelibs/logana","commit":"48b475e9fd5224821bfba7d41e755d8d64806651"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: server/jupyter/Dockerfile:1: pin your Docker image by updating jupyter/datascience-notebook:python-3.8.6 to jupyter/datascience-notebook:python-3.8.6@sha256:f22723e3545351a6e364a22826e58dde8821a65de6001f931ab4d09d838ccea0","Warn: pipCommand not pinned by hash: server/jupyter/Dockerfile:11-14","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T19:42:35.804Z","repository_id":62576657,"created_at":"2025-08-17T19:42:35.804Z","updated_at":"2025-08-17T19:42:35.804Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-29T21:08:43.885Z","updated_at":"2026-05-01T02:32:09.359Z","avatar_url":"https://github.com/codelibs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Logana: Log Analysis System\n===========================\n\n## Overview\n\nLogana is Search/Recommend Log Analysis system.\n\n### Kernel settings for elasticsearch\n\nLogana server is elasticsearch cluster.\nelasticsearch needs to set vm.max\\_map\\_count to at least 262144.\nSee [Install Elasticsearch with Docker](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-prerequisites).\n\n## Usage\n\n### Start Logana Server\n\n```\n$ ./bin/logana server start\n```\n\nIf you want to start Logana with Kibana, add `-k` option:\n\n```\n$ ./bin/logana server start -k\n```\n\n### Stop Logana Server\n\n```\n$ ./bin/logana server stop\n```\n\n### Clean Up on Logana Server\n\n```\n$ ./bin/logana server clean\n```\n\n### Show Stats\n\n```\n$ ./bin/logana show\n```\n## Others\n\n### Log Format\n\nLogana defines a log format with dynamic templates for elasticsearch.\nIt's as below:\n\n```\n{\n  \"request\": {\n    \"id\": { // ID values\n      \"name\": \"value\",\n      ...\n    },\n    \"attributes\": { // attributes for request\n      \"keyword\": { // field type\n        \"name\": \"value\",\n        ...\n      },\n      ... // available field types: keyworkd, text, integer, long, float, double, date, ip\n    },\n    \"conditions\": { // search conditions\n      \"keyword\": { // field type\n        \"name\": \"value\",\n        ...\n      },\n      ... // available field types: keyworkd, text, integer, long, float, double, date, ip\n    }\n  },\n  \"response\": {\n    \"attributes\": { // attributes for response\n      \"keyword\": { // field type\n        \"name\": \"value\",\n        ...\n      },\n      ... // available field types: keyworkd, text, integer, long, float, double, date, ip\n    },\n    \"results\": {\n      \"doc_X\": { // viewed document\n        \"id\": \"value\", // ID for document\n        \"keyword\": { // field type\n          \"name\": \"value\",\n          ...\n        },\n        ... // available field types: keyworkd, text, integer, long, float, double, date, ip\n      },\n      ...\n    }\n  }\n}\n```\n\nAn example request is like this:\n\n```\ncurl -H \"Content-Type: application/json\" -XPOST localhost:9220/logana_log.2020-10/_doc/12345 -d '\n{\n  \"request\": {\n    \"id\": {\n      \"request\": \"12345\",\n      \"session\": \"abcde\"\n    },\n    \"attributes\": {\n      \"keyword\": {\n        \"user_agent\": \"Mozilla/5.0 ...\",\n        \"referer\": \"https:/...\"\n       },\n      \"date\": {\n        \"request_time\": \"2020-09-06T00:00:06.166+0000\"\n       }\n    },\n    \"conditions\": {\n      \"keyword\": {\n        \"query\": \"java\",\n        \"location\": \"tokyo\",\n        \"category\": [\"tech\", \"news\"]\n      }\n    }\n  },\n  \"response\": {\n    \"attributes\": {\n      \"integer\": {\n        \"took\": 10\n      },\n      \"long\": {\n        \"total_hits\": 321\n      }\n    },\n    \"results\": {\n      \"doc_1\": {\n        \"id\": \"docid345\",\n        \"keyword\": {\n          \"title\": \"Java Programing\",\n          \"category\": \"java\"\n         },\n        \"boolean\": {\n          \"is_clicked\": true\n         },\n        \"date\": {\n          \"click_time\": \"2020-09-06T00:01:16.234+0000\"\n         }\n      },\n      \"doc_2\": {\n        \"id\": \"docid534\",\n        \"keyword\": {\n          \"title\": \"Java Book\",\n          \"category\": \"java\"\n         },\n        \"boolean\": {\n          \"is_clicked\": false\n         },\n        \"date\": {\n         }\n      },\n      \"doc_3\": {\n        \"id\": \"docid675\",\n        \"keyword\": {\n          \"title\": \"Java News\",\n          \"category\": \"news\"\n         },\n        \"boolean\": {\n          \"is_clicked\": true\n         },\n        \"date\": {\n          \"click_time\": \"2020-09-06T00:02:34.412+0000\"\n         }\n      }\n    }\n  }\n}'\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Flogana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelibs%2Flogana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Flogana/lists"}