<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Make line chart from 2 multivalue fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564684#M196700</link>
    <description>&lt;LI-CODE lang="markup"&gt;| eval xy=mvzip(x,y,"!")
| mvexpand xy
| eval x=mvindex(split(xy,"!"),0)
| eval y=mvindex(split(xy,"!"),1)
| fields - xy&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 25 Aug 2021 11:26:49 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-08-25T11:26:49Z</dc:date>
    <item>
      <title>Make line chart from 2 multivalue fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564683#M196699</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have 2 multivalue fields I want to make a simple line chart out of them.&amp;nbsp;&lt;BR /&gt;Each event looks like this&amp;nbsp;&lt;BR /&gt;x: [0.1,0.2,0.3,0.4,0.5] , y: [1.7, 1.4, 2.4, 5.5 ,4.7]&lt;BR /&gt;&amp;nbsp;Where x and y are multivalue fields in the event.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The line chart should be an average graph of those values in the selected time range.&lt;BR /&gt;&lt;BR /&gt;I tried using mvexpand and it didn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 11:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564683#M196699</guid>
      <dc:creator>arielamar123</dc:creator>
      <dc:date>2021-08-25T11:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Make line chart from 2 multivalue fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564684#M196700</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval xy=mvzip(x,y,"!")
| mvexpand xy
| eval x=mvindex(split(xy,"!"),0)
| eval y=mvindex(split(xy,"!"),1)
| fields - xy&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Aug 2021 11:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564684#M196700</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-25T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Make line chart from 2 multivalue fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564688#M196701</link>
      <description>&lt;P&gt;I ran your query , it did nothing , the event is the same as before and I can't create a line chart out of those fields.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 12:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564688#M196701</guid>
      <dc:creator>arielamar123</dc:creator>
      <dc:date>2021-08-25T12:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Make line chart from 2 multivalue fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564689#M196702</link>
      <description>&lt;P&gt;It would probably help if you gave a bit more detail about your data and your search&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 12:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564689#M196702</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-25T12:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Make line chart from 2 multivalue fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564692#M196704</link>
      <description>&lt;P&gt;My index gets the following events of this kind:&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;x: [1,2,3,4,5],&lt;BR /&gt;y:[7,4,1,8,3]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;x: [1,2,3,4,5],&lt;BR /&gt;y:[5,1,7,8,2]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to build a line chart of y as function of x :&amp;nbsp; &amp;nbsp;f(x) = y&amp;nbsp;&lt;BR /&gt;x values are always the same and y values are changing as function of time.&lt;BR /&gt;&lt;BR /&gt;The line chart I want is the average y values for each matching x value along the selected time range.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 12:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564692#M196704</guid>
      <dc:creator>arielamar123</dc:creator>
      <dc:date>2021-08-25T12:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Make line chart from 2 multivalue fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564703#M196709</link>
      <description>&lt;P&gt;Still not a lot to go on - assuming you have already extracted x and y as multi-value fields, and that each event has a _time field, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval xy=mvzip(x,y,"!")
| mvexpand xy
| eval x=mvindex(split(xy,"!"),0)
| eval y=mvindex(split(xy,"!"),1)
| fields - xy
| xyseries _time x y&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Aug 2021 12:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Make-line-chart-from-2-multivalue-fields/m-p/564703#M196709</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-25T12:57:43Z</dc:date>
    </item>
  </channel>
</rss>

