{"id":18559194,"url":"https://github.com/linux-china/osquery-spring-boot-starter","last_synced_at":"2026-04-20T09:32:52.107Z","repository":{"id":136595788,"uuid":"106892868","full_name":"linux-china/osquery-spring-boot-starter","owner":"linux-china","description":"Spring Boot Starter for osquery","archived":false,"fork":false,"pushed_at":"2025-06-04T04:26:15.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-08T23:47:57.806Z","etag":null,"topics":["duckdb","osquery","spring-boot","spring-boot-starter"],"latest_commit_sha":null,"homepage":"","language":"Java","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/linux-china.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,"zenodo":null}},"created_at":"2017-10-14T02:53:47.000Z","updated_at":"2025-06-04T04:26:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec2beaec-0361-4de3-ac95-d78c746973ee","html_url":"https://github.com/linux-china/osquery-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/linux-china/osquery-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fosquery-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fosquery-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fosquery-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fosquery-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux-china","download_url":"https://codeload.github.com/linux-china/osquery-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fosquery-spring-boot-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["duckdb","osquery","spring-boot","spring-boot-starter"],"created_at":"2024-11-06T21:42:16.747Z","updated_at":"2026-04-20T09:32:52.100Z","avatar_url":"https://github.com/linux-china.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spring Boot Starter osquery\n===========================\n\nIntegrate osquery in Spring Boot 2/3.x to query system information.\n\nWhy Spring Boot starter for osquery?\n\n- osquery is a powerful tool to query system information\n- Query system information by REST API through Spring Boot Actuator endpoints\n- You can use DuckDB, DataFusion to aggregate data from multi instances and store the data in S3/MinIO etc.\n\n# Get Started\n\n- Install osquery from https://github.com/osquery/osquery/releases\n- Add dependency in your `pom.xml`:\n\n```xml\n\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.mvnsearch\u003c/groupId\u003e\n  \u003cartifactId\u003eosquery-spring-boot-starter\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n- Adjust `application.properties` to set management configuration\n\n```\n### management\nmanagement.server.port=8888\nmanagement.endpoints.web.exposure.include=*\nmanagement.endpoint.health.show-components=always\nmanagement.endpoint.health.show-details=always\n### set osqueryi path if not in PATH\n#osqueryi.path=/usr/local/bin/osqueryi\n```\n\n- Start your Spring Boot application and access the osquery endpoints\n\n# Endpoints\n\n* `/actuator/osquery`: list osquery info and table names\n* `/actuator/osquery/{tableName}`: output table content\n* `/actuator/osquery/{tableName}(col1,col2,col3)`: output table content with columns\n\n**Note**: By default, the output is in CSV format. If you want to output in JSON format,\nyou can add format query string, such as `/actuator/osquery/etc_hosts?format=json`.\n\nExamples:\n\n```\n### osquery\nGET http://localhost:8888/actuator/osquery\n\n### osquery schema\nGET http://localhost:8888/actuator/osquery/etc_hosts\n\n### osquery schema with columns\nGET http://localhost:8888/actuator/osquery/etc_hosts(address,hostnames)\n\n### osquery for load average\nGET http://localhost:8888/actuator/osquery/load_average\n```\n\n# DuckDB friendly\n\nQuery load average:\n\n```shell\n$ duckdb -c \"SELECT * FROM read_csv('http://localhost:8888/actuator/osquery/load_average')\"\n$ duckdb -c \"SELECT * FROM 'http://localhost:8888/actuator/osquery/load_average.csv'\"\n```\n\nQuery processes:\n\n ```shell\n$ duckdb -c \"SELECT * FROM read_csv('http://localhost:8888/actuator/osquery/processes') where name like '%java%'\"\n```\n\n# References\n\n* osquery schema: https://osquery.io/schema/\n* DuckDB: https://duckdb.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fosquery-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux-china%2Fosquery-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fosquery-spring-boot-starter/lists"}