title: Create Distribution Metric with Logs-Based Metrics and Regex
body: <p>I'm trying to create a metric extracted from a string from some logs.</p>
  <p>I'm creating a new Distribution Log Metric. I'm applying the filter to get the right logs. The filter is working as I can preview it.</p>
  <p>Then I'm entering the Field name for my metric. No issue here as I can find it in the proposed values.</p>
  <p>Now the field is returning me a string with some query parameters. I want to convert the value of one of these query parameters as a metric. I'm adding a Regular expression to do so.</p>
  <p>My string looks like this: <code>https://blabla.com/Name=Foo&amp;Value=123&amp;Version=14</code> and this is my regex <code>Version=([^&amp;]*)</code></p>
  <p>As suggested I tried the following regex <code>Version=([0-9]+)</code>. Output is the same.</p>
  <p>but the metric isn't working. When opening the Metrics explorer I have the following message:</p>
  <p><code>Only numeric metric data can be drawn as a line chart. the data provided cannot be drawn</code></p>
  <p>Anything I'm missing here?</p>
  <p>#edit1</p>
  <p>I tried something simpler. I have a field which is returning only value. For example <code>&quot;348&quot;</code> if I'm looking at the log. I tried to build a Distribution Metric based on this field using the following regex <code>([0-9.]+)</code> and I have the same issue. The output doesn't seems to be read as numeric data.</p>
  <p>#edit2</p>
  <p>Adding some illustrations</p>
  <p>the log with the requestSize field</p>
  <p><a href="https://i.stack.imgur.com/ZsIiR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZsIiR.png" alt="enter image description here" /></a></p>
  <p>The setup of the log-based metric with the regex</p>
  <p><a href="https://i.stack.imgur.com/aPNph.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aPNph.png" alt="enter image description here" /></a></p>
  <p>and the output</p>
  <p><a href="https://i.stack.imgur.com/sdSSt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sdSSt.png" alt="enter image description here" /></a></p>