{"id":23338416,"url":"https://github.com/abhirockzz/fn-elk","last_synced_at":"2026-01-20T11:32:19.743Z","repository":{"id":79124942,"uuid":"154497784","full_name":"abhirockzz/fn-elk","owner":"abhirockzz","description":"Exporting Fn function logs to ELK","archived":false,"fork":false,"pushed_at":"2018-10-24T12:38:52.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T13:44:57.972Z","etag":null,"topics":["elk","faas","fnproject","serverless"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/abhirockzz.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":"2018-10-24T12:31:53.000Z","updated_at":"2018-10-24T12:38:53.000Z","dependencies_parsed_at":"2023-03-12T06:43:18.224Z","dependency_job_id":null,"html_url":"https://github.com/abhirockzz/fn-elk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abhirockzz/fn-elk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-elk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-elk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-elk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-elk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhirockzz","download_url":"https://codeload.github.com/abhirockzz/fn-elk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-elk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: 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":["elk","faas","fnproject","serverless"],"created_at":"2024-12-21T03:13:53.051Z","updated_at":"2026-01-20T11:32:19.720Z","avatar_url":"https://github.com/abhirockzz.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fn function logs to ELK\r\n\r\nFn allows you to push [function logs to a syslog endpoint](https://github.com/fnproject/docs/blob/master/fn/operate/logging.md#remote-syslog-for-functions). This is an example of how to configure it and test it using `ELK` stack (`Elasticsearch-Logstash-Kibana`)\r\n\r\nELK stack has been run on Docker using [docker-elk](https://github.com/deviantony/docker-elk) with some changes\r\n\r\n- `docker-compose.yml` has been changed to version 3 and removed things like volumes etc. which are not needed for this example\r\n- minor update to `logstash.conf` (inside `logstash/pipeline`) to configure `stdout` format\r\n\r\n\u003e `logstash.conf` configuration defines the endpoint for the logstash `syslog` input plugin\r\n\r\n## Pre-requisite\r\n\r\n- Ensure latest FN CLI. To update - `curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh`\r\n- Ensure latest Fn server - to update `fn update sv`\r\n\r\n## To start off...\r\n\r\nClone or download this repo\r\n\r\n\u003e we simply start the Fn server and the ELK stack locally using Docker\r\n\r\n- start Fn server - `fn start`\r\n- Switch context - `fn use context default`\r\n- `cd fn-elk/docker-elk \u0026\u0026 docker-compose up` ... wait for the stack to start up\r\n- Create an application pointing to the logstash `syslog` endpoint - `fn create app fn-elk-app --syslog-url tcp://localhost:5000`\r\n\r\n\u003e use the appropriate value for the endpoint if your ELK stack is running elsewhere\r\n\r\n## Deploy and test....\r\n\r\n- Deploy `cd fn-elk/log-test-sample \u0026\u0026 fn -v deploy --app fn-elk-app --local`\r\n- Invoke `echo -n 'testmessage' | fn invoke fn-elk-app test` (repeat as needed)\r\n\r\n## Check Kibana\r\n\r\nOpen the Kibana console - `http://localhost:5601`, head over the **Discover** section, add **message** to the **Selected Fields** and you should be able to see the functions logs\r\n\r\n![](kibana-logs.JPG)\r\n\r\n\r\n\r\n \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Ffn-elk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhirockzz%2Ffn-elk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Ffn-elk/lists"}