<?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: Issue with CSV import in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80994#M5160</link>
    <description>&lt;P&gt;On the map issue discussed above, when I run a map command after the initial importutl code it doesn't seem to pick up the values. e.g.&lt;/P&gt;

&lt;P&gt;| importutil format=splunk http &lt;A href="http://mysite/mycsv.csv"&gt;http://mysite/mycsv.csv&lt;/A&gt;&lt;BR /&gt;
| multikv&lt;BR /&gt;
| table EventValueFilter, Duration, Earliest, Limit&lt;BR /&gt;
| map [search source=MySource $EventValueFilter$ $Limit$&lt;BR /&gt;
| stats avg(Timing) as Timing by TransactionName &lt;BR /&gt;
| where Timing &amp;gt;= $Duration$] maxsearches=99 &lt;BR /&gt;
| fields TransactionName, Timing   &lt;/P&gt;

&lt;P&gt;It returns 9 rows with no values for either TransactionName or Timing shown. The initial import CSV contains 9 records.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2013 11:02:02 GMT</pubDate>
    <dc:creator>paddy3883</dc:creator>
    <dc:date>2013-01-14T11:02:02Z</dc:date>
    <item>
      <title>Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80987#M5153</link>
      <description>&lt;P&gt;I'm using this app but whenever I import a CSV it seems to lose the values from the last column e.g.&lt;/P&gt;

&lt;P&gt;EventValueFilter,Duration,Earliest,Limit&lt;BR /&gt;&lt;BR /&gt;
"EVENTA","1000"," ","| head 5 "&lt;BR /&gt;&lt;BR /&gt;
"EVENTB","2000"," ","| head 5 "&lt;BR /&gt;&lt;BR /&gt;
"EVENTC","3000"," ","| head 5 "  &lt;/P&gt;

&lt;P&gt;And when i use the app:  &lt;/P&gt;

&lt;P&gt;| importutil http &lt;A href="http://mysite/mycsv.csv"&gt;http://mysite/mycsv.csv&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
| multikv&lt;BR /&gt;&lt;BR /&gt;
| table EventValueFilter, Duration, Earliest, Limit  &lt;/P&gt;

&lt;P&gt;It returns the values for the first three fields but no values for Limit. If I add an extra dummy value to each row it will return the values for Limit but not for the new column.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Splunk is running on Windows server 2003 R2, version 4.2.3, build 105575.&lt;/P&gt;

&lt;P&gt;Screenshot of CSV file  &lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i45.tinypic.com/8vruk3.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Screenshot of splunk&lt;BR /&gt;&lt;BR /&gt;
&lt;IMG src="http://i50.tinypic.com/282n7r7.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 16:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80987#M5153</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-01-08T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80988#M5154</link>
      <description>&lt;P&gt;Also, when I do add the dummy field to get all the values I need out, I am unable to use this with the map command. e.g.&lt;/P&gt;

&lt;P&gt;| map [search source=MySource $EventValueFilter$ $Limit$ | stats avg(Timing) as Timing by TransactionName | where Timing &amp;gt;= $Duration$] maxsearches=99  &lt;/P&gt;

&lt;P&gt;It fails to bind the values from the CSV file to parameters in the sub-query for the map command.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 16:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80988#M5154</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-01-08T16:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80989#M5155</link>
      <description>&lt;P&gt;paddy, The scenario you described works for me.  I was able to read in and display all fields from a csv file that looks like &lt;/P&gt;

&lt;P&gt;EventValueFilter,Duration,Earliest,Limit&lt;BR /&gt;
"EVENTA","1000"," ","| head 5 "&lt;BR /&gt;
"EVENTB","2000"," ","| head 5 "&lt;BR /&gt;
"EVENTC","3000"," ","| head 5 "&lt;/P&gt;

&lt;P&gt;I've only tested on a Mac, but it should work for splunk running on unix and windows.   What OS are you running on?  What version of splunk?  Can you send a screen shot of the output you are seeing?&lt;/P&gt;

&lt;P&gt;Regarding the map issue.  I'm not sure I understand the question.  Can you explain in more detail.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2013 19:33:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80989#M5155</guid>
      <dc:creator>nicholasgrabows</dc:creator>
      <dc:date>2013-01-08T19:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80990#M5156</link>
      <description>&lt;P&gt;I've edited my response above for the first issue.&lt;/P&gt;

&lt;P&gt;Regarding the map issue, I meant that when I added in an additional value for each row in the CSV and Splunk was pulling out the four values correctly, if I then added the map command above to iterate over each line it didn't seem to evaluate the parameters out. For example, values for  both $EventValueFilter$ and $Limit$ were empty for each row. I will get screenshots and add&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 10:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80990#M5156</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-01-09T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80991#M5157</link>
      <description>&lt;P&gt;I've tested with a similar file on windows 7 with splunk 4.2.3 and it appears to work.  One other question.  What version of importutil are you using? 1.0 beta1 (i.e. the latest version)?  If not try downloading the latest version and reinstalling.  Assuming you are using the latest, can you try executing importutil from the command line:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;cd %SPLUNK_HOME%\etc\apps\importutil\bin&lt;BR /&gt;
%SPLUNK_HOME%\bin\splunk cmd python importutil.py http &lt;A href="http://yourhost/your.csv" target="_blank"&gt;http://yourhost/your.csv&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Email the results to &lt;A href="mailto:splunk@ngsoft.org" target="_blank"&gt;splunk@ngsoft.org&lt;/A&gt;.  Also, would you mind sending me a copy of the csv file.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80991#M5157</guid>
      <dc:creator>nicholasgrabows</dc:creator>
      <dc:date>2020-09-28T13:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80992#M5158</link>
      <description>&lt;P&gt;I've emailed on the details as requested.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 10:02:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80992#M5158</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-01-11T10:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80993#M5159</link>
      <description>&lt;P&gt;Thanks for your help on the import issue here&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 09:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80993#M5159</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-01-14T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with CSV import</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80994#M5160</link>
      <description>&lt;P&gt;On the map issue discussed above, when I run a map command after the initial importutl code it doesn't seem to pick up the values. e.g.&lt;/P&gt;

&lt;P&gt;| importutil format=splunk http &lt;A href="http://mysite/mycsv.csv"&gt;http://mysite/mycsv.csv&lt;/A&gt;&lt;BR /&gt;
| multikv&lt;BR /&gt;
| table EventValueFilter, Duration, Earliest, Limit&lt;BR /&gt;
| map [search source=MySource $EventValueFilter$ $Limit$&lt;BR /&gt;
| stats avg(Timing) as Timing by TransactionName &lt;BR /&gt;
| where Timing &amp;gt;= $Duration$] maxsearches=99 &lt;BR /&gt;
| fields TransactionName, Timing   &lt;/P&gt;

&lt;P&gt;It returns 9 rows with no values for either TransactionName or Timing shown. The initial import CSV contains 9 records.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 11:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Issue-with-CSV-import/m-p/80994#M5160</guid>
      <dc:creator>paddy3883</dc:creator>
      <dc:date>2013-01-14T11:02:02Z</dc:date>
    </item>
  </channel>
</rss>

