<?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 How to force timezone for AWS Add-On Inputs (like CloudFront) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-force-timezone-for-AWS-Add-On-Inputs-like-CloudFront/m-p/572562#M101328</link>
    <description>&lt;P&gt;With the AWS Add-On for Splunk (version 5.0.3) we can pull logs from a CloudFront S3 bucket via the "Generic S3" type, or from an Application Load Balance with the ELB, Generic S3 type Input.&lt;/P&gt;&lt;P&gt;The problem is that the time format for the CloudFront logs are without timezone specified in the S3 objects and our splunk instance is incorrectly defaulting to localtime.&amp;nbsp; The ELB logs are correctly converted from UTC to localtime in searches.&lt;/P&gt;&lt;P&gt;How might we force the timezone to UTC for these events at ingest?&lt;/P&gt;&lt;P&gt;I tried creating a /opt/splunk/etc/apps/Splunk_TA_aws/local/props.conf file (yes, $SPLUNK_HOME is /opt/splunk) on our heavy forwarder and restarted with this content:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[aws:cloudfront:accesslogs]&lt;BR /&gt;TZ = UTC&lt;/P&gt;&lt;P&gt;Alas, no dice yet.&amp;nbsp; Suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 23:57:40 GMT</pubDate>
    <dc:creator>rewtroy</dc:creator>
    <dc:date>2021-10-26T23:57:40Z</dc:date>
    <item>
      <title>How to force timezone for AWS Add-On Inputs (like CloudFront)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-force-timezone-for-AWS-Add-On-Inputs-like-CloudFront/m-p/572562#M101328</link>
      <description>&lt;P&gt;With the AWS Add-On for Splunk (version 5.0.3) we can pull logs from a CloudFront S3 bucket via the "Generic S3" type, or from an Application Load Balance with the ELB, Generic S3 type Input.&lt;/P&gt;&lt;P&gt;The problem is that the time format for the CloudFront logs are without timezone specified in the S3 objects and our splunk instance is incorrectly defaulting to localtime.&amp;nbsp; The ELB logs are correctly converted from UTC to localtime in searches.&lt;/P&gt;&lt;P&gt;How might we force the timezone to UTC for these events at ingest?&lt;/P&gt;&lt;P&gt;I tried creating a /opt/splunk/etc/apps/Splunk_TA_aws/local/props.conf file (yes, $SPLUNK_HOME is /opt/splunk) on our heavy forwarder and restarted with this content:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[aws:cloudfront:accesslogs]&lt;BR /&gt;TZ = UTC&lt;/P&gt;&lt;P&gt;Alas, no dice yet.&amp;nbsp; Suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 23:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-force-timezone-for-AWS-Add-On-Inputs-like-CloudFront/m-p/572562#M101328</guid>
      <dc:creator>rewtroy</dc:creator>
      <dc:date>2021-10-26T23:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to force timezone for AWS Add-On Inputs (like CloudFront)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-force-timezone-for-AWS-Add-On-Inputs-like-CloudFront/m-p/572563#M101329</link>
      <description>&lt;P&gt;Hmm,&lt;BR /&gt;&lt;BR /&gt;[splunk@ess1 Splunk_TA_aws]$ splunk btool props list aws:cloudfront:accesslogs | grep TZ&lt;BR /&gt;TZ = UTC&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 00:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-force-timezone-for-AWS-Add-On-Inputs-like-CloudFront/m-p/572563#M101329</guid>
      <dc:creator>rewtroy</dc:creator>
      <dc:date>2021-10-27T00:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to force timezone for AWS Add-On Inputs (like CloudFront)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-force-timezone-for-AWS-Add-On-Inputs-like-CloudFront/m-p/573478#M101437</link>
      <description>&lt;P&gt;Ahh, I think I found the issue.&amp;nbsp; The TA was pulling in data when it thought it occurred at the present time, but it was interpreting UTC time as -0400 (EDT), thus it was always 4 hours behind the latest.&amp;nbsp; When it was unwedged, it kept processing data for another four hours and stopped, but I also introduced another problem which caused it to abruptly stop.&amp;nbsp; I fixed that problem, and retroactively loaded in the old data, so it was able to catch up the gap.&amp;nbsp; Sometimes you need to spend many hours on a timezone problem before the evidence catches up with you.&lt;/P&gt;&lt;P&gt;Problem now solved.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-force-timezone-for-AWS-Add-On-Inputs-like-CloudFront/m-p/573478#M101437</guid>
      <dc:creator>rewtroy</dc:creator>
      <dc:date>2021-11-03T13:43:36Z</dc:date>
    </item>
  </channel>
</rss>

