<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Logging on Dapr Docs</title><link>https://v1-18.docs.dapr.io/operations/observability/logging/</link><description>Recent content in Logging on Dapr Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://v1-18.docs.dapr.io/operations/observability/logging/index.xml" rel="self" type="application/rss+xml"/><item><title>Logs</title><link>https://v1-18.docs.dapr.io/operations/observability/logging/logs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/logging/logs/</guid><description>&lt;p>Dapr produces structured logs to stdout, either in plain-text or JSON-formatted. By default, all Dapr processes (runtime, or sidecar, and all control plane services) write logs to the console (stdout) in plain-text. To enable JSON-formatted logging, you need to add the &lt;code>--log-as-json&lt;/code> command flag when running Dapr processes.&lt;/p>


&lt;div class="alert alert-primary" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 If you want to use a search engine such as Elastic Search or Azure Monitor to search the logs, it is strongly recommended to use JSON-formatted logs which the log collector and search engine can parse using the built-in JSON parser.

&lt;/div>

&lt;h2 id="log-schema">Log schema&lt;/h2>
&lt;p>Dapr produces logs based on the following schema:&lt;/p></description></item><item><title>How-To: Set up Fluentd, Elastic search and Kibana in Kubernetes</title><link>https://v1-18.docs.dapr.io/operations/observability/logging/fluentd/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/logging/fluentd/</guid><description>&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>Kubernetes (&amp;gt; 1.14)&lt;/li>
&lt;li>&lt;a href="https://kubernetes.io/docs/tasks/tools/">kubectl&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://helm.sh/">Helm 3&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="install-elastic-search-and-kibana">Install Elastic search and Kibana&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Create a Kubernetes namespace for monitoring tools&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>kubectl create namespace dapr-monitoring
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Add the helm repo for Elastic Search&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>helm repo add elastic https://helm.elastic.co
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>helm repo update
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Install Elastic Search using Helm&lt;/p>
&lt;p>By default, the chart creates 3 replicas which must be on different nodes. If your cluster has fewer than 3 nodes, specify a smaller number of replicas. For example, this sets the number of replicas to 1:&lt;/p></description></item><item><title>How-To: Set-up New Relic for Dapr logging</title><link>https://v1-18.docs.dapr.io/operations/observability/logging/newrelic/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v1-18.docs.dapr.io/operations/observability/logging/newrelic/</guid><description>&lt;h2 id="prerequisites">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>Perpetually &lt;a href="https://newrelic.com/signup?ref=dapr">free New Relic account&lt;/a>, 100 GB/month of free data ingest, 1 free full access user, unlimited free basic users&lt;/li>
&lt;/ul>
&lt;h2 id="background">Background&lt;/h2>
&lt;p>New Relic offers a &lt;a href="https://fluentbit.io/">Fluent Bit&lt;/a> output &lt;a href="https://github.com/newrelic/newrelic-fluent-bit-output">plugin&lt;/a> to easily forward your logs to &lt;a href="https://github.com/newrelic/newrelic-fluent-bit-output">New Relic Logs&lt;/a>. This plugin is also provided in a standalone Docker image that can be installed in a Kubernetes cluster in the form of a DaemonSet, which we refer as the Kubernetes plugin.&lt;/p>
&lt;p>This document explains how to install it in your cluster, either using a Helm chart (recommended), or manually by applying Kubernetes manifests.&lt;/p></description></item></channel></rss>