{"result":{"depiction_url":null,"edges":{"hasreference":{"objects":[{"created":"2026-10-07T11:13:42Z","object_id":{"id":1640,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_logging","title":{"_type":"trans","tr":{"en":"Write logs that explain an operation"}},"uri":"https:\/\/zotonic.com\/id\/1640"},"seq":1},{"created":"2026-10-07T11:13:42Z","object_id":{"id":3079,"is_a":["text","documentation","adminguide"],"name":"admin_logs","title":{"_type":"trans","tr":{"en":"Read logs and collect useful evidence"}},"uri":"https:\/\/zotonic.com\/id\/3079"},"seq":2}],"predicate":{"id":2774,"is_a":["meta","predicate"],"name":"hasreference","title":{"_type":"trans","tr":{"en":"Documentation reference"}},"uri":"https:\/\/zotonic.com\/id\/hasreference"}},"references":{"objects":[{"created":"2020-05-30T05:47:43Z","object_id":{"id":1640,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_logging","title":{"_type":"trans","tr":{"en":"Write logs that explain an operation"}},"uri":"https:\/\/zotonic.com\/id\/1640"},"seq":1000000},{"created":"2022-02-02T20:18:50Z","object_id":{"id":1454,"is_a":["text","documentation","reference"],"name":"doc_developerguide_configuration_zotonic_configuration","title":"Global configuration","uri":"https:\/\/zotonic.com\/id\/1454"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"relation":{"objects":[{"created":"2020-05-30T05:47:43Z","object_id":{"id":1640,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_logging","title":{"_type":"trans","tr":{"en":"Write logs that explain an operation"}},"uri":"https:\/\/zotonic.com\/id\/1640"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-10-07T11:13:42Z","object_id":{"id":2557,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_cookbook_recipe","title":"Cookbook recipe","uri":"https:\/\/zotonic.com\/id\/2557"},"seq":1},{"created":"2026-10-07T11:13:42Z","object_id":{"id":2566,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_operator","title":"Operator","uri":"https:\/\/zotonic.com\/id\/2566"},"seq":2},{"created":"2026-10-07T11:13:42Z","object_id":{"id":2607,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_logging_and_monitoring","title":"Logging and monitoring","uri":"https:\/\/zotonic.com\/id\/2607"},"seq":3}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1580,"is_a":["text","documentation","cookbook"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1580"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_cookbook_logstash","page_url":{"en":"https:\/\/zotonic.com\/cookbook\/1580\/send-structured-logs-to-logstash","x-default":"https:\/\/zotonic.com\/cookbook\/1580\/send-structured-logs-to-logstash"},"preview_url":null,"resource":{"body":{"_type":"trans","tr":{"en":"<p>The supplied <code>erlang.config.in<\/code> contains a <code>logstasher_h<\/code> Logger handler and a <code>logstasher<\/code> application section. Copy the relevant entries into your deployment&#39;s <code>erlang.config<\/code>, preserving its other Logger handlers.<\/p>\n<p>Choose the receiver&#39;s host, port and supported transport (<code>tcp<\/code>, <code>udp<\/code>, or <code>console<\/code>) in the <code>logstasher<\/code> section. Enable the handler in the <code>kernel<\/code> Logger configuration. Use the installed sample for the handler&#39;s full formatter and level settings, rather than mixing fragments from old releases.<\/p>\n<p>After applying the configuration through the deployment procedure, emit a harmless event in the remote shell:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">logger:notice(#{text =&gt; &lt;&lt;&quot;Log delivery test&quot;&gt;&gt;, in =&gt; documentation_check}).\n<\/code><\/pre>\n<p>Find that event in the receiver and check its timestamp, level and structured fields. Press <strong>Ctrl-C twice<\/strong> to detach. Do not use the nonexistent <code>logger:error_msg\/2<\/code> API.<\/p>\n<p>Check behaviour when the receiver is unavailable and when buffers fill. UDP has no delivery confirmation; sending a test event is not proof the collector stored it. Keep a local diagnostic route and exclude passwords, tokens and personal message bodies from logs.<\/p>"}},"category_id":{"id":318,"is_a":["meta","category"],"name":"cookbook","title":{"_type":"trans","tr":{"en":"Cookbook"}},"uri":"https:\/\/test.zotonic.com\/id\/318"},"content_group_id":{"id":339,"is_a":["meta","content_group"],"name":"default_content_group","title":{"_type":"trans","tr":{"en":"Default Content Group"}},"uri":"https:\/\/zotonic.com\/id\/default_content_group"},"created":"2020-05-30T05:47:27Z","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"doc_editorial_bundle":true,"doc_editorial_edges":{"hasreference":[1640,3079],"subject":[2557,2566,2607]},"github_url":"https:\/\/github.com\/zotonic\/zotonic\/tree\/master\/doc\/cookbook\/logstash.rst","is_authoritative":true,"is_dependent":false,"is_featured":false,"is_protected":false,"is_published":true,"is_unfindable":false,"language":["en"],"modified":"2026-10-07T11:13:53Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"name":"doc_cookbook_logstash","pivot_geocode":null,"pivot_location_lat":null,"pivot_location_lng":null,"privacy":0,"publication_end":"9999-06-01T00:00:00Z","publication_start":"2022-02-15T10:01:16Z","slug":"send-structured-logs-to-logstash","summary":{"_type":"trans","tr":{"en":"Configure the installed Logger handler and verify delivery."}},"title":{"_type":"trans","tr":{"en":"Send structured logs to Logstash"}},"title_slug":{"_type":"trans","tr":{"en":"send-structured-logs-to-logstash"}},"tz":"UTC","uri":null,"version":31,"visible_for":0},"uri":"https:\/\/zotonic.com\/id\/1580","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1580"}},"status":"ok"}