{"id":21861054,"url":"https://github.com/sib-swiss/server-log-analytics","last_synced_at":"2026-04-20T19:31:00.451Z","repository":{"id":74149483,"uuid":"94795528","full_name":"sib-swiss/server-log-analytics","owner":"sib-swiss","description":"Server Log Analytics in Apache Scala / Spark","archived":false,"fork":false,"pushed_at":"2018-02-19T15:30:34.000Z","size":2690,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T20:17:49.095Z","etag":null,"topics":["analytics","logging","spark","spark-sql"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sib-swiss.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-19T16:04:22.000Z","updated_at":"2017-06-19T16:23:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d9e3d25-d577-43cb-9ad0-f7d5a8f4c9e3","html_url":"https://github.com/sib-swiss/server-log-analytics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sib-swiss/server-log-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sib-swiss%2Fserver-log-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sib-swiss%2Fserver-log-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sib-swiss%2Fserver-log-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sib-swiss%2Fserver-log-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sib-swiss","download_url":"https://codeload.github.com/sib-swiss/server-log-analytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sib-swiss%2Fserver-log-analytics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266437368,"owners_count":23928235,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["analytics","logging","spark","spark-sql"],"created_at":"2024-11-28T03:09:45.721Z","updated_at":"2026-04-20T19:31:00.443Z","avatar_url":"https://github.com/sib-swiss.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scala/Spark Library for Server Logs Analytics \n\n[![Build Status](https://travis-ci.org/sib-swiss/server-log-analytics.svg?branch=master)](https://travis-ci.org/sib-swiss/server-log-analytics)\n[![codecov](https://codecov.io/gh/sib-swiss/server-log-analytics/branch/master/graph/badge.svg)](https://codecov.io/gh/sib-swiss/server-log-analytics)\n\nRequirements: \n* [Download Spark 2.1+](https://spark.apache.org/downloads.html)\n* Java [JDK8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)\n* [sbt](http://www.scala-sbt.org/download.html) (to build the project)\n\n## Build the artifact\n\n```shell\nsbt package\n```\n\n## Choose/modify/create a config file\n\nThe config file contains where the log files are kept and where the parquet folder (structured file) should be written \n\nExample for STRING. \nIn this example we use /scratch/local but we could use /scratch/cluster if we wanted to run in the cluster\n\n```\nname: STRING\n\n#Directory where to find the log files\nlogDirectory: /scratch/local/weekly/dteixeir/string-logs/*\n\n#Directory where to output or read the parquet file\nparquetFile: /scratch/local/weekly/dteixeir/string-parquet/\n\n```\n\n## Run the application\n\n```shell\n./start.sh configs/oma-config.yaml\n```\n\nChoose the appropriated option (option 2 and 3, requires option 1 parquet)\n\n```\nUsing config file configs/oma-config.yaml\n---\n1) Convert Parquet\n2) Insights Report\n3) Distinct IPs\n4) Quit\n`\n```\n\n### Parquet (Required)\n\nOption 1, Convert Parequet is required to proceed further.\nThis converstion will convert the \"raw log files\" to a structured / indexed format for fast analysis.\n\n### Insights report\nThis option will generate a report to be included in Insights \n\n### Distinct IPs\nThis will produce a file with all distinct IPs\n\n### script insights - genereate  \n```shell\nspark-shell $SPARK_SCRIPT_MEMORY -i scripts/analyse.scala\n```\n\n## DRAFT - Optional: Run the analysis on a cluster\n\n(The documentation below is not ready)\n```shell\n$SPARK_HOME/bin/spark-submit --class org.elixir.insights.server.logs.ServerLogAnalyser --master local[4] target/scala-2.11/server-log-analytics_2.11-1.0.jar\n```\n\n32 cores\n100GB of memory\n\n./start-slave.sh -c 32 -m 100G spark://rserv01.vital-it.ch:7077\n\n\nTook 2.5 hours\n```\nspark-shell --executor-memory 100G --master spark://rserv01.vital-it.ch:7077 -i analyse.scala\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsib-swiss%2Fserver-log-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsib-swiss%2Fserver-log-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsib-swiss%2Fserver-log-analytics/lists"}