{"id":17645688,"url":"https://github.com/pstrobl96/prusa_log_processor","last_synced_at":"2025-07-24T22:35:03.036Z","repository":{"id":252686837,"uuid":"840935364","full_name":"pstrobl96/prusa_log_processor","owner":"pstrobl96","description":"Processor of logs from Buddy based Prusa Research 3D printers","archived":false,"fork":false,"pushed_at":"2024-08-15T19:02:35.000Z","size":296,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T18:10:37.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pstrobl96.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T06:23:43.000Z","updated_at":"2025-02-14T14:46:29.000Z","dependencies_parsed_at":"2024-08-15T20:13:58.104Z","dependency_job_id":null,"html_url":"https://github.com/pstrobl96/prusa_log_processor","commit_stats":null,"previous_names":["pstrobl96/prusa_log_processor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pstrobl96/prusa_log_processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_log_processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_log_processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_log_processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_log_processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pstrobl96","download_url":"https://codeload.github.com/pstrobl96/prusa_log_processor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pstrobl96%2Fprusa_log_processor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266913701,"owners_count":24005580,"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-24T02:00:09.469Z","response_time":99,"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-10-23T10:58:27.316Z","updated_at":"2025-07-24T22:35:03.007Z","avatar_url":"https://github.com/pstrobl96.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prusa Log Processor\n\n## Processor setup\n\nYou can run simply docker run of container. \n\n`docker run pubeldev/prusa_log_processor`\n\nOr you can run binary, no configuration but everything necessary is possible to set via flags. You can config several paramaters.\n\n\n```\nexporter.metrics-path - Path where to expose metrics - default - \"/metrics\"\nexporter.metrics-port - Port where to expose metrics - default - \"10010\"\nprocessor.address - Address where to expose port for gathering logs - default - \"0.0.0.0.13514\"\nprocessor.log-to - Write logs to file - default - \"false\"\nprocessor.directory - Directory where to store logs - default - \"./logs\"\nprocessor.filename - Filename where to store logs - default - \"prusa.log\"\nprocessor.max-size - Maximum size of log file - default - \"10\"\nprocessor.max-backups - Maximum number of backups - default - \"3\"\nprocessor.max-age - Maximum age of log file - default - \"28\"\nlog.level - Log level for prusa_log_processor - default - \"info\"\n```\n\nExample \n\n```\n./prusa_exporter-linux-amd64 --processor.address=0.0.0.0:424242 --log.level=debug --exporter.metrics-port=9090\n```\n\n## Enable SYSLOG in printer\n\nTo gather logs you have to allow sending logs to `prusa_log_processor`. You have to create `config.gcode` that will contain M340 command which set up log server address. Bellow you'll find manual how to set up your printer. Example gcode [can be found](docs/printer/config.gcode) in docs folder.\n\n```\nM340 192.168.20.2 13514\n```\n\nAfter loading gcode on to flash drive you can enable the metrics in printer.\n\nOpen `Settings`  \n![syslog0](docs/printer/screenshot_0.jpg)  \n\nNavigate to `Network`  \n![syslog1](docs/printer/screenshot_1.jpg)  \n\nFind `Metrics \u0026 Log`  \n![syslog2](docs/printer/screenshot_2.jpg)  \n\nNow click on `Allow` - Confirm and change value to `Any Host`. Next switch on `Enabled Stored at Startup`  \n![syslog3](docs/printer/screenshot_3.jpg)  \n![syslog4](docs/printer/screenshot_4.jpg)  \n![syslog5](docs/printer/screenshot_5.jpg)  \n\nNow run your configuration gcode we created before  \n![syslog6](docs/printer/screenshot_6.jpg)  \n![syslog7](docs/printer/screenshot_7.jpg)  \n\nNavigate back to `Metrics \u0026 Log` and find `Current Configuration` - click on `Logs Host` and store it as Host   \n![syslog8](docs/printer/screenshot_8.jpg)  \n![syslog9](docs/printer/screenshot_9.jpg)  \n\nClick on `Logs Port` and store it as Metrics Port  \n![syslog10](docs/printer/screenshot_10.jpg)  \n![syslog11](docs/printer/screenshot_11.jpg)  \n\nAfter configuration it should look like this. Only IP address should be different. And if different port was choosen then also port.  \n![syslog12](docs/printer/screenshot_12.jpg)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpstrobl96%2Fprusa_log_processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpstrobl96%2Fprusa_log_processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpstrobl96%2Fprusa_log_processor/lists"}