<?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: CSV multipul time events in header in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517316#M87537</link>
    <description>&lt;P&gt;Hello&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Unfortunately I can't export it that way. That would be a lot of entries to hand jam but I see where you are going with this.&amp;nbsp; I think I'll have to try my hand at a python script to change it.&amp;nbsp; I can easily flip the column A with row 1 using paste special &amp;gt; transpose.&amp;nbsp; From there maybe python can group the users to the hours, as you have in your example.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2020 17:28:47 GMT</pubDate>
    <dc:creator>kphillipson</dc:creator>
    <dc:date>2020-09-01T17:28:47Z</dc:date>
    <item>
      <title>CSV multipul time events in header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517143#M87516</link>
      <description>&lt;P&gt;I have a CSV file where the header contains the time of each subset of data. I need Splunk to split the columns into different event times, to be referenced as _time.&lt;/P&gt;&lt;TABLE width="257"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="53"&gt;user_ID&lt;/TD&gt;&lt;TD width="68"&gt;6/24/2019&lt;/TD&gt;&lt;TD width="68"&gt;6/17/2019&lt;/TD&gt;&lt;TD width="68"&gt;6/10/2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;40.34&lt;/TD&gt;&lt;TD&gt;40.5&lt;/TD&gt;&lt;TD&gt;44.53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;36.99&lt;/TD&gt;&lt;TD&gt;38.64&lt;/TD&gt;&lt;TD&gt;42.86&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance user_ID 3 has logged in for 40.34 hours for week 6/24/2019,&amp;nbsp; 40.5 hours for week 6/17/2019 etc...&lt;/P&gt;&lt;P&gt;The only thing that comes to mind is creating separate csv files for each week, but I believe there is a better way.&amp;nbsp; I have search but nothing has lined up with what I'm running into. The closest was this one but didn't help. &lt;A href="https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-the-time-column-name-of-CSV-as-the-index/td-p/456189" target="_blank"&gt;https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-use-the-time-column-name-of-CSV-as-the-index/td-p/456189&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time helping me.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 02:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517143#M87516</guid>
      <dc:creator>kphillipson</dc:creator>
      <dc:date>2020-09-01T02:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: CSV multipul time events in header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517172#M87521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/25478"&gt;@kphillipson&lt;/a&gt;&amp;nbsp;, is it possible to update the csv to contain data like below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;week&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;user_id&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&lt;SPAN&gt;6/24/2019&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;3&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&lt;SPAN&gt;40.34&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&lt;SPAN&gt;6/24/2019&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;4&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;36.99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;6/17/2019&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;40.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;6/17/2019&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;38.64&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 01 Sep 2020 07:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517172#M87521</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-09-01T07:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: CSV multipul time events in header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517316#M87537</link>
      <description>&lt;P&gt;Hello&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Unfortunately I can't export it that way. That would be a lot of entries to hand jam but I see where you are going with this.&amp;nbsp; I think I'll have to try my hand at a python script to change it.&amp;nbsp; I can easily flip the column A with row 1 using paste special &amp;gt; transpose.&amp;nbsp; From there maybe python can group the users to the hours, as you have in your example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 17:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517316#M87537</guid>
      <dc:creator>kphillipson</dc:creator>
      <dc:date>2020-09-01T17:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: CSV multipul time events in header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517331#M87544</link>
      <description>&lt;P&gt;|inputlookup yourcsv |untable user_id week hours | eval _time=strptime(week,&amp;#15;"%m/%d/%Y") |table _time&amp;nbsp;user_id hours | collect index=yours&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 20:34:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517331#M87544</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-09-01T20:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: CSV multipul time events in header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517350#M87546</link>
      <description>&lt;P&gt;Thank you for your experience.&amp;nbsp; A kind friend was able to generate a python script to reorder the csv for me. Loading the csv as a lookup and having Splunk generate the desired output works too!&amp;nbsp; Hope this helps someone with the same issue having time referenced in the row.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 00:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-multipul-time-events-in-header/m-p/517350#M87546</guid>
      <dc:creator>kphillipson</dc:creator>
      <dc:date>2020-09-02T00:44:26Z</dc:date>
    </item>
  </channel>
</rss>

