<?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: Creating graphs on extracted values in a csv file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Creating-graphs-on-extracted-values-in-a-csv-file/m-p/338569#M62498</link>
    <description>&lt;P&gt;This should do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | makemv ports_running delim="," | stats count by ports_running
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;makemv&lt;/CODE&gt; turns your comma-delimited string into a multi-value field, with one value per port. The &lt;CODE&gt;stats&lt;/CODE&gt; then does the counting per port.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Mar 2018 15:41:29 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2018-03-11T15:41:29Z</dc:date>
    <item>
      <title>Creating graphs on extracted values in a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-graphs-on-extracted-values-in-a-csv-file/m-p/338568#M62497</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have a csv file which has values like this&lt;/P&gt;

&lt;P&gt;host, ports running&lt;BR /&gt;
192.168.1.1, 80,8081,22&lt;BR /&gt;
192.168.1.2, 80,21,8083&lt;BR /&gt;
192.168.1.3, 22,23,8082&lt;/P&gt;

&lt;P&gt;Now, I want to create graphs by extracting the unique values form each ports running field. &lt;/P&gt;

&lt;P&gt;i.e. for this file the result should be &lt;BR /&gt;
number of port 80 open - 2&lt;BR /&gt;
number of port 22 open - 2&lt;BR /&gt;
number of port 8081 open - 1&lt;BR /&gt;
number of port 8082 open - 1&lt;BR /&gt;
number of port 8083 open - 1&lt;/P&gt;

&lt;P&gt;I have tried extracting fields however, I am not able to use these values as a unique value. &lt;/P&gt;

&lt;P&gt;Anyone has faced a similar situation. &lt;BR /&gt;
Thank you for reading this and thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 13:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-graphs-on-extracted-values-in-a-csv-file/m-p/338568#M62497</guid>
      <dc:creator>anirudhduggal</dc:creator>
      <dc:date>2018-03-11T13:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating graphs on extracted values in a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-graphs-on-extracted-values-in-a-csv-file/m-p/338569#M62498</link>
      <description>&lt;P&gt;This should do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | makemv ports_running delim="," | stats count by ports_running
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;makemv&lt;/CODE&gt; turns your comma-delimited string into a multi-value field, with one value per port. The &lt;CODE&gt;stats&lt;/CODE&gt; then does the counting per port.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 15:41:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-graphs-on-extracted-values-in-a-csv-file/m-p/338569#M62498</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-03-11T15:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating graphs on extracted values in a csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-graphs-on-extracted-values-in-a-csv-file/m-p/338570#M62499</link>
      <description>&lt;P&gt;Worked like a charm. &lt;BR /&gt;
Just another thing. The last field that appears is a blank because the fields are ending with a comma (,) is there any way i can omit this field ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 02:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-graphs-on-extracted-values-in-a-csv-file/m-p/338570#M62499</guid>
      <dc:creator>anirudhduggal</dc:creator>
      <dc:date>2018-03-13T02:27:32Z</dc:date>
    </item>
  </channel>
</rss>

