<?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 csv with same fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/csv-with-same-fields/m-p/22295#M3393</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;

&lt;P&gt;I have a question about searching in a csv file and creating graphs from it..&lt;/P&gt;

&lt;P&gt;i have a file with the fields below but i'm&lt;BR /&gt;&lt;BR /&gt;
Time,CPU %,Data %,Ctrl,Serial,CPU %,Data %,Ctrl,Serial,Node&lt;BR /&gt;
29/Apr/2013 00:00:02,11,10,1111,FJS34F30VS1111,7,6,2222,GJS88F40SV2222,HOST01&lt;BR /&gt;
29/Apr/2013 00:00:23,9,8,1111,FJS34F30VS1111,12,11,2222,GJS88F40SV2222,HOST01&lt;BR /&gt;
29/Apr/2013 00:00:42,11,10,1111,FJS34F30VS1111,13,13,2222,GJS88F40SV2222,HOST01&lt;BR /&gt;
29/Apr/2013 00:01:03,10,9,1111,FJS34F30VS1111,12,11,2222,GJS88F40SV2222,HOST01&lt;/P&gt;

&lt;P&gt;I created a query to search and create a graph for two Ctrl's CPU load from HOST01 but i'm only getting the data from the first Ctrl and not the second.. &lt;BR /&gt;
host="HOST01" | timechart dc(CPU__) by Ctlr&lt;/P&gt;

&lt;P&gt;Any ideas how to combine this two Ctlr into 1 graph or do i have to do something with lookups?&lt;/P&gt;

&lt;P&gt;regards, BK&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2013 13:23:55 GMT</pubDate>
    <dc:creator>bertjan</dc:creator>
    <dc:date>2013-05-02T13:23:55Z</dc:date>
    <item>
      <title>csv with same fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/csv-with-same-fields/m-p/22295#M3393</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;

&lt;P&gt;I have a question about searching in a csv file and creating graphs from it..&lt;/P&gt;

&lt;P&gt;i have a file with the fields below but i'm&lt;BR /&gt;&lt;BR /&gt;
Time,CPU %,Data %,Ctrl,Serial,CPU %,Data %,Ctrl,Serial,Node&lt;BR /&gt;
29/Apr/2013 00:00:02,11,10,1111,FJS34F30VS1111,7,6,2222,GJS88F40SV2222,HOST01&lt;BR /&gt;
29/Apr/2013 00:00:23,9,8,1111,FJS34F30VS1111,12,11,2222,GJS88F40SV2222,HOST01&lt;BR /&gt;
29/Apr/2013 00:00:42,11,10,1111,FJS34F30VS1111,13,13,2222,GJS88F40SV2222,HOST01&lt;BR /&gt;
29/Apr/2013 00:01:03,10,9,1111,FJS34F30VS1111,12,11,2222,GJS88F40SV2222,HOST01&lt;/P&gt;

&lt;P&gt;I created a query to search and create a graph for two Ctrl's CPU load from HOST01 but i'm only getting the data from the first Ctrl and not the second.. &lt;BR /&gt;
host="HOST01" | timechart dc(CPU__) by Ctlr&lt;/P&gt;

&lt;P&gt;Any ideas how to combine this two Ctlr into 1 graph or do i have to do something with lookups?&lt;/P&gt;

&lt;P&gt;regards, BK&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 13:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/csv-with-same-fields/m-p/22295#M3393</guid>
      <dc:creator>bertjan</dc:creator>
      <dc:date>2013-05-02T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: csv with same fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/csv-with-same-fields/m-p/22296#M3394</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;   When I index your file and run your request, it displays  me the good results  because indexing allow me to see all values of fields CPU% and Ctrl  then,  all 6 values of CPU   in one column CPU and  all 2 values of Ctrl in one column Ctrl.&lt;/LI&gt;
&lt;LI&gt;  When I work it directly in csv file without indexing, in encounter the same problem like you.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I can conclude that, among these same fields in the csv file, when we work with lookup, its only first field that is considers. &lt;/P&gt;

&lt;P&gt;You have two cases to resolve that:&lt;/P&gt;

&lt;P&gt;1-  Index the  file before start searching&lt;BR /&gt;
 2-   Or modify your CSV file the way  to put all values of CPU% and Ctrl in the same field&lt;/P&gt;

&lt;P&gt;with 1, i get the result like follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            20 Per Page Format Preview Prev 1 2 3 4 Next
            _time               1111    2222
            2013-04-29 00:00:02 2   2
            2013-04-29 00:00:03 0   0
            2013-04-29 00:00:04 0   0
            2013-04-29 00:00:05 0   0
            2013-04-29 00:00:06 0   0
            2013-04-29 00:00:07 0   0
            2013-04-29 00:00:08 0   0
            2013-04-29 00:00:09 0   0
            2013-04-29 00:00:10 0   0
            2013-04-29 00:00:11 0   0
            2013-04-29 00:00:12 0   0
            2013-04-29 00:00:13 0   0
            2013-04-29 00:00:14 0   0
            2013-04-29 00:00:15 0   0
            2013-04-29 00:00:16 0   0
            2013-04-29 00:00:17 0   0
            2013-04-29 00:00:18 0   0
            2013-04-29 00:00:19 0   0
            2013-04-29 00:00:20 0   0
            2013-04-29 00:00:21 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/csv-with-same-fields/m-p/22296#M3394</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2014-12-19T13:13:16Z</dc:date>
    </item>
  </channel>
</rss>

