<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Henrik Feldt</title>
    <description>The latest articles on DEV Community by Henrik Feldt (@henrikfeldt).</description>
    <link>https://dev.to/henrikfeldt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F101432%2F9686f4dd-9bba-4658-8f72-f589729d385b.jpeg</url>
      <title>DEV Community: Henrik Feldt</title>
      <link>https://dev.to/henrikfeldt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/henrikfeldt"/>
    <language>en</language>
    <item>
      <title>Logary Rutta intro</title>
      <dc:creator>Henrik Feldt</dc:creator>
      <pubDate>Fri, 22 Feb 2019 16:00:44 +0000</pubDate>
      <link>https://dev.to/henrikfeldt/logary-rutta-intro-254d</link>
      <guid>https://dev.to/henrikfeldt/logary-rutta-intro-254d</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/logary/logary"&gt;Logary&lt;/a&gt; is coming up for its v5 release, so I figured now would be a good time to post my first blog entry at dev.to.&lt;/p&gt;

&lt;p&gt;The last weeks I've been doing a lot of work on Rutta, Logary's log router, in order to make it easier to work with and more reliable. Logary is the core library and Rutta is a normal program/service that you can run in a docker container, and send logs to.&lt;/p&gt;

&lt;p&gt;The lifecycle of the library is this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a new Logary instance and configure it with where you want to send logs (Targets)&lt;/li&gt;
&lt;li&gt;Get a &lt;code&gt;Logger&lt;/code&gt; from the instance and log &lt;code&gt;Message&lt;/code&gt;s to it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The lifecycle of Rutta is this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Choose its mode:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Router for ingesting data and sending it to a target&lt;/li&gt;
&lt;li&gt;Shipper for sending to a Rutta Router or a Rutta Proxy&lt;/li&gt;
&lt;li&gt;Proxy to bridge subnets and forward logs&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;If router, you can now choose what it listens to and where to it sends:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Provide a number of "listeners", consisting of:

&lt;ul&gt;
&lt;li&gt;A transport (TCP, UDP, HTTP)&lt;/li&gt;
&lt;li&gt;A binding (e.g. &lt;code&gt;[::]:8080&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;A codec (JSON, plain, binary, log4jxml, etc)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Provide a provide a number of "targets", in URI format, to send to, e.g.:

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;stackdriver://./?projectId=my-gcp-project&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;console://./&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's it; you can try it yourself with &lt;code&gt;docker run --rm -it haaf/rutta:5.0.0-rc.2.211cd352&lt;/code&gt; — or use its &lt;a href="https://github.com/logary/logary/tree/master/src/services/rutta-helm-chart"&gt;Helm chart&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy logging!&lt;/p&gt;

</description>
      <category>logging</category>
      <category>metrics</category>
    </item>
  </channel>
</rss>
