{"id":557,"date":"2024-02-27T20:22:09","date_gmt":"2024-02-27T19:22:09","guid":{"rendered":"https:\/\/www.n18.de\/?p=557"},"modified":"2024-03-09T09:53:46","modified_gmt":"2024-03-09T08:53:46","slug":"short-lora-igate-und-das-syslog","status":"publish","type":"post","link":"https:\/\/www.n18.de\/index.php\/2024\/02\/27\/short-lora-igate-und-das-syslog\/","title":{"rendered":"LoRa iGate und das Syslog"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Habt ihr Euch schon immer die Frage gestellt, was ein das LoRa iGate denn eigentlich sendet und empf\u00e4ngt?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wie kann man das monitoren oder auch Analysen durchf\u00fchren (auch remote) im Netzwerk?<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"568\" src=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-7.png\" alt=\"LoRA iGate - Syslog\" class=\"wp-image-561\" srcset=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-7.png 430w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-7-227x300.png 227w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/figure>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">Quelle: https:\/\/funkamateure-dresden-ov-s06.de\/lorawan-sinn\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nun, das ESP32 Board hat in der Konfigurationsdatei f\u00fcr LoRa APRS die Option einen Syslog Server anzugeben. Dorthin werden alle Systemnachrichten des ESP weitergeleitet. Syslog gibt es f\u00fcr alle Betriebssysteme. Ich gehe hier aber im speziellen auf Linux ein. Genau genommen auf den Raspberry mit rsyslog. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ich habe bei mir immer einen Raspberry Pi, welchen ich zu allen m\u00f6glichen Testzwecken nutze. Installiert ist Raspbian, ein Debian Linux angepasst f\u00fcr den Raspberry.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"498\" height=\"334\" src=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-8.png\" alt=\"\" class=\"wp-image-562\" srcset=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-8.png 498w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-8-300x201.png 300w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-8-120x80.png 120w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Zun\u00e4chst sollte Ein Raspberry mit einer relativ aktuellen Version installiert und betriebsbereit sein. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Danach geht ihr nach dieser Anleitung vor und installiert in 5 Minuten den Syslog Server:<a href=\"https:\/\/pimylifeup.com\/raspberry-pi-syslog-server\/\"> Klick!<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bei dem iGate muss nat\u00fcrlich in der if-cfg.json die Syslog Funktion noch aktiviert werden:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8222;syslog&#8220;: {<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp; &nbsp; &nbsp; &nbsp; &#8222;active&#8220;: true,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp; &nbsp; &nbsp; &nbsp; &#8222;server&#8220;: &#8222;192.168.8.15&#8220;,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp; &nbsp; &nbsp; &nbsp; &#8222;port&#8220;: 514<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"944\" src=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-6.png\" alt=\"\" class=\"wp-image-558\" srcset=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-6.png 798w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-6-254x300.png 254w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-6-768x909.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Als n\u00e4chsten Schritt verbindet man sich z.B. per SSH auf den Raspberry.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mit dem Befehl tail -f \/var\/log\/lora.log sieht man nun alle Nachrichten die dieser kleine Chip erstellt. Alle APRS Nachrichten werden nun per Netzwerk zentral auf einem Server gespeichert.  Das sollte dann in etwa so aussehen: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"367\" src=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-10-1024x367.png\" alt=\"\" class=\"wp-image-564\" srcset=\"https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-10-1024x367.png 1024w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-10-300x107.png 300w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-10-768x275.png 768w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-10-1536x550.png 1536w, https:\/\/www.n18.de\/wp-content\/uploads\/2024\/02\/grafik-10.png 1939w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Analysen des Lora iGate \u00fcber Syslog.<\/p>\n","protected":false},"author":5,"featured_media":580,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/posts\/557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/comments?post=557"}],"version-history":[{"count":12,"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/posts\/557\/revisions"}],"predecessor-version":[{"id":584,"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/posts\/557\/revisions\/584"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/media\/580"}],"wp:attachment":[{"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/media?parent=557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/categories?post=557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.n18.de\/index.php\/wp-json\/wp\/v2\/tags?post=557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}