<?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: How to remove the timezone from my field in a CSV file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244893#M72948</link>
    <description>&lt;P&gt;Could you post your current search? Is the data from CSV being ingested to Splunk OR being used as lookup table OR direct csv access (inputcsv)?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2016 15:50:38 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-07-06T15:50:38Z</dc:date>
    <item>
      <title>How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244892#M72947</link>
      <description>&lt;P&gt;I'm fetching the data from a CSV file, but the issue with my data is that some of the values are in PDT and some are in PST. &lt;/P&gt;

&lt;P&gt;The format is &lt;CODE&gt;2016-06-15 04:55 PM PDT&lt;/CODE&gt;. I just want all these values to be of same zone minus the time zone at the end. I want to display my data over a timechart.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244892#M72947</guid>
      <dc:creator>PRIYANKA_1993</dc:creator>
      <dc:date>2016-07-06T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244893#M72948</link>
      <description>&lt;P&gt;Could you post your current search? Is the data from CSV being ingested to Splunk OR being used as lookup table OR direct csv access (inputcsv)?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 15:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244893#M72948</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-06T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244894#M72949</link>
      <description>&lt;P&gt;I am using inputlookup&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 01:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244894#M72949</guid>
      <dc:creator>PRIYANKA_1993</dc:creator>
      <dc:date>2016-07-07T01:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244895#M72950</link>
      <description>&lt;P&gt;Hope this can help:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup xxx.csv | eval _time=strptime(your_time_field,"%Y-%m-%d %H:%M %p %Z") | timechart span=5m count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the display time zone will be the user time zone, same as server time zone by default&lt;BR /&gt;
the time format could be found in&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Commontimeformatvariables"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 02:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244895#M72950</guid>
      <dc:creator>chanmi2</dc:creator>
      <dc:date>2016-07-07T02:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244896#M72951</link>
      <description>&lt;P&gt;For some strange reason it is not showing any results.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 05:01:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244896#M72951</guid>
      <dc:creator>PRIYANKA_1993</dc:creator>
      <dc:date>2016-07-07T05:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244897#M72952</link>
      <description>&lt;P&gt;could you remove |timechart span=5m count, and check if the _time is parsed correctly?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 06:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244897#M72952</guid>
      <dc:creator>chanmi2</dc:creator>
      <dc:date>2016-07-07T06:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244898#M72953</link>
      <description>&lt;P&gt;After I changed the name of my time field, _time is getting parsed. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 14:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244898#M72953</guid>
      <dc:creator>PRIYANKA_1993</dc:creator>
      <dc:date>2016-07-08T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the timezone from my field in a CSV file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244899#M72954</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup xxx.csv | eval time=strptime(your_time_field,"%Y-%m-%d %H:%M %p %Z") | bin span=15m time | stats count by time | eval time=strftime(time, "%c")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Jul 2016 14:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-the-timezone-from-my-field-in-a-CSV-file/m-p/244899#M72954</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-08T14:29:33Z</dc:date>
    </item>
  </channel>
</rss>

