<?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: timestamp assignment not working ELB logs Splunk Add-on for AWS in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709728#M117252</link>
    <description>&lt;P&gt;I suppose that you should try to move those timestamp extractions under each source:: definitions. Then those should work.&lt;/P&gt;&lt;P&gt;Anyhow those definitions which you have put on that new sourcetype definitions are working on search time if those can apply on search time. But example those _time settings are working only in indexing phase.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 19:25:26 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2025-01-24T19:25:26Z</dc:date>
    <item>
      <title>timestamp assignment not working ELB logs Splunk Add-on for AWS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709637#M117237</link>
      <description>&lt;P&gt;We're sending AWS ELB Access logs (Classic ELB, NLB and ALB) using Lambda to HEC.&amp;nbsp; I have installed the Splunk add-on for AWS on SH and HEC . The add-on has regexes to parse the access logs and all the fields extractions from REGEX for access logs seems to be working fine.&lt;/P&gt;&lt;P&gt;However, we're having issues with the timestamp of the event, which is also extracted as "timestamp" field and the _time is getting assigned as ingestion time instead of actual time from the event.&amp;nbsp; I tried to add timestamp PREFIX in the props.conf in Splunk_TA_AWS for the aws:elb:access logs sourcetype, however, it doesn't work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample events -&amp;nbsp;&lt;/P&gt;&lt;P&gt;NLB -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;tls&lt;/SPAN&gt; &lt;SPAN class=""&gt;2.0&lt;/SPAN&gt; &lt;SPAN class=""&gt;2025-01-15T23:59:54&lt;/SPAN&gt; &lt;SPAN class=""&gt;net/loadbalancerName/guid&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;10.xxx.xxx.1:32582&lt;/SPAN&gt; &lt;SPAN class=""&gt;10.xxx.x.xx:443&lt;/SPAN&gt; &lt;SPAN class=""&gt;1140251&lt;/SPAN&gt; &lt;SPAN class=""&gt;85&lt;/SPAN&gt; &lt;SPAN class=""&gt;3546&lt;/SPAN&gt; &lt;SPAN class=""&gt;571&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;arn:aws:acm:us-west-2:026921344628:certificate/guid&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;ECDHE-RSA-XXXX-GCMXXX&lt;/SPAN&gt; &lt;SPAN class=""&gt;tlsv12&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;example.io&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;2025-01-15T23:40:54&lt;BR /&gt;&lt;BR /&gt;ALB -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;https 2018-07-02T22:23:00.186641Z app/my-loadbalancer/50dc6c495c0c9188 192.168.131.39:2817 10.0.0.1:80 0.086 0.048 0.037 200 200 0 57 "GET &lt;A href="https://www.example.com:443/" target="_blank" rel="noopener"&gt;https://www.example.com:443/&lt;/A&gt; HTTP/1.1" "curl/7.46.0" ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 arn:aws:elasticloadbalancing:us-east-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 "Root=1-58337281-1d84f3d73c47ec4e58577259" "&lt;A href="http://www.example.com" target="_blank" rel="noopener"&gt;www.example.com&lt;/A&gt;" "arn:aws:acm:us-east-2:123456789012:certificate/12345678-1234-1234-1234-123456789012" 1 2018-07-02T22:22:48.364000Z "authenticate,forward" "-" "-" "10.0.0.1:80" "200" "-" "-" TID_123456&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ELB -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2018-12-31T00:08:01.715269Z&lt;/SPAN&gt;&amp;nbsp;loadbalancerName&amp;nbsp;187&lt;SPAN class=""&gt;.xx.xx.xx:48364&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;-1&lt;/SPAN&gt; &lt;SPAN class=""&gt;-1&lt;/SPAN&gt; &lt;SPAN class=""&gt;-1&lt;/SPAN&gt; &lt;SPAN class=""&gt;503&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class=""&gt;GET&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A href="http://52.x.xxx.xxx:80/" target="_blank" rel="noopener"&gt;http://52.x.xxx.xxx:80/&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;HTTP/1.1&lt;/SPAN&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;SPAN class=""&gt;Mozilla/5.0&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;Windows&lt;/SPAN&gt; &lt;SPAN class=""&gt;NT&lt;/SPAN&gt; &lt;SPAN class=""&gt;10.0&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;WOW64&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN class=""&gt;AppleWebKit/537.36&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;KHTML&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;like&lt;/SPAN&gt; &lt;SPAN class=""&gt;Gecko&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN class=""&gt;Chrome/52.0.2743.116&lt;/SPAN&gt; &lt;SPAN class=""&gt;Safari/537.36&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;props.conf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;## Classic Load Balancer ##
[source::http:lblogs]
EXTRACT-elb = ^\s*(?P&amp;lt;timestamp&amp;gt;\S+)(\s+(?P&amp;lt;elb&amp;gt;\S+))(\s+(?P&amp;lt;client_ip&amp;gt;[\d.]+):(?P&amp;lt;client_port&amp;gt;\d+))(\s+(?P&amp;lt;backend&amp;gt;\S+))(\s+(?P&amp;lt;request_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;backend_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;response_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;elb_status_code&amp;gt;\S+))(\s+(?P&amp;lt;backend_status_code&amp;gt;\S+))(\s+(?P&amp;lt;received_bytes&amp;gt;\d+))(\s+(?P&amp;lt;sent_bytes&amp;gt;\d+))(\s+"(?P&amp;lt;request&amp;gt;[^"]+)")(\s+"(?P&amp;lt;user_agent&amp;gt;[^"]+)")(\s+(?P&amp;lt;ssl_cipher&amp;gt;\S+))(\s+(?P&amp;lt;ssl_protocol&amp;gt;\S+))
EVAL-rtt = request_processing_time + backend_processing_time + response_processing_time
sourcetype = aws:elb:accesslogs

## Application Load Balancer ##
[source::http:aws-lblogs]
EXTRACT-elb = ^\s*(?P&amp;lt;type&amp;gt;\S+)(\s+(?P&amp;lt;timestamp&amp;gt;\S+))(\s+(?P&amp;lt;elb&amp;gt;\S+))(\s+(?P&amp;lt;client_ip&amp;gt;[\d.]+):(?P&amp;lt;client_port&amp;gt;\d+))(\s+(?P&amp;lt;target&amp;gt;\S+))(\s+(?P&amp;lt;request_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;target_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;response_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;elb_status_code&amp;gt;\S+))(\s+(?P&amp;lt;target_status_code&amp;gt;\S+))(\s+(?P&amp;lt;received_bytes&amp;gt;\d+))(\s+(?P&amp;lt;sent_bytes&amp;gt;\d+))(\s+"(?P&amp;lt;request&amp;gt;[^"]+)")(\s+"(?P&amp;lt;user_agent&amp;gt;[^"]+)")(\s+(?P&amp;lt;ssl_cipher&amp;gt;\S+))(\s+(?P&amp;lt;ssl_protocol&amp;gt;\S+))(\s+(?P&amp;lt;target_group_arn&amp;gt;\S+))(\s+"(?P&amp;lt;trace_id&amp;gt;[^"]+)")(\s+"(?P&amp;lt;domain_name&amp;gt;[^"]+)")?(\s+"(?P&amp;lt;chosen_cert_arn&amp;gt;[^"]+)")?(\s+(?P&amp;lt;matched_rule_priority&amp;gt;\S+))?(\s+(?P&amp;lt;request_creation_time&amp;gt;\S+))?(\s+"(?P&amp;lt;actions_executed&amp;gt;[^"]+)")?(\s+"(?P&amp;lt;redirect_url&amp;gt;[^"]+)")?(\s+"(?P&amp;lt;error_reason&amp;gt;[^"]+)")?
EVAL-rtt = request_processing_time + target_processing_time + response_processing_time
priority = 1
sourcetype = aws:elb:accesslogs

## Network Load Balancer ##
[source::http:lblogs]
EXTRACT-elb-nlb = ^\s*(?P&amp;lt;type&amp;gt;\S+)(\s+(?P&amp;lt;log_version&amp;gt;\S+))(\s+(?P&amp;lt;timestamp&amp;gt;\S+))(\s+(?P&amp;lt;elb&amp;gt;\S+))(\s+(?P&amp;lt;listener&amp;gt;\S+))(\s+(?P&amp;lt;client_ip&amp;gt;[\d.]+):(?P&amp;lt;client_port&amp;gt;\d+))(\s+(?P&amp;lt;destination_ip&amp;gt;[\d.]+):(?P&amp;lt;destination_port&amp;gt;\d+))(\s+(?P&amp;lt;connection_time&amp;gt;\S+))(\s+(?P&amp;lt;tls_handshake_time&amp;gt;\S+))(\s+(?P&amp;lt;received_bytes&amp;gt;\d+))(\s+(?P&amp;lt;sent_bytes&amp;gt;\d+))(\s+(?P&amp;lt;incoming_tls_alert&amp;gt;\S+))(\s+(?P&amp;lt;chosen_cert_arn&amp;gt;\S+))(\s+(?P&amp;lt;chosen_cert_serial&amp;gt;\S+))(\s+(?P&amp;lt;tls_cipher&amp;gt;\S+))(\s+(?P&amp;lt;tls_protocol_version&amp;gt;\S+))(\s+(?P&amp;lt;tls_named_group&amp;gt;\S+))(\s+(?P&amp;lt;domain_name&amp;gt;\S+))(\s+(?P&amp;lt;alpn_fe_protocol&amp;gt;\S+))(\s+(?P&amp;lt;alpn_be_protocol&amp;gt;\S+))(\s+(?P&amp;lt;alpn_client_preference_list&amp;gt;\S+))
sourcetype = aws:elb:accesslogs

[aws:elb:accesslogs]
TIME_PREFIX = ^.*?(?=20\d\d-\d\d)
TIME_FORMAT =
MAX_TIME_LOOKAHEAD &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 22:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709637#M117237</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2025-01-23T22:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp assignment not working ELB logs Splunk Add-on for AWS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709642#M117238</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think that your issue is setting sourcetype inside source stanza. As splunk has only one linear data pipeline and now it has taken those events based on source:: definition it will apply only those values on indexing phase. You cannot put events back into the start of this pipeline again and start same event manipulation with sourcetype stanza.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your aws:elb:accesslog definitions are used, but only in search time, not in index time. And as those definitions are affecting only in index time it's obviously that nothing happen for you _time value.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Configurationparametersandthedatapipeline" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Configurationparametersandthedatapipeline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you try to add those same definitions under every source:: stanzas?&lt;/P&gt;&lt;P&gt;Of course as you are using HEC it also mater which endpoint you are using. There are differences what manipulations you can do with props.conf based on endpoint.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 23:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709642#M117238</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-01-23T23:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp assignment not working ELB logs Splunk Add-on for AWS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709727#M117251</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As I understand ; Since these definitions are used only at search time , then I only need the add-on installed on the search Head. On the HEC I will put the props.conf with the TIME PREFIX related regex , so time will be extracted from the incoming logs and sent to the indexers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 18:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709727#M117251</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2025-01-24T18:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp assignment not working ELB logs Splunk Add-on for AWS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709728#M117252</link>
      <description>&lt;P&gt;I suppose that you should try to move those timestamp extractions under each source:: definitions. Then those should work.&lt;/P&gt;&lt;P&gt;Anyhow those definitions which you have put on that new sourcetype definitions are working on search time if those can apply on search time. But example those _time settings are working only in indexing phase.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 19:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709728#M117252</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-01-24T19:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp assignment not working ELB logs Splunk Add-on for AWS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709863#M117266</link>
      <description>&lt;P&gt;on HEC - I tried the following by moving the TIME definitions under the source (for all 3 sources) in props.conf and removed them from sourcetype.&amp;nbsp; Restarted Splunk, but still did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::http:aws-lblogs]
EXTRACT-elb = ^\s*(?P&amp;lt;type&amp;gt;\S+)(\s+(?P&amp;lt;timestamp&amp;gt;\S+))(\s+(?P&amp;lt;elb&amp;gt;\S+))(\s+(?P&amp;lt;client_ip&amp;gt;[\d.]+):(?P&amp;lt;client_port&amp;gt;\d+))(\s+(?P&amp;lt;target&amp;gt;\S+))(\s+(?P&amp;lt;request_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;target_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;response_processing_time&amp;gt;\S+))(\s+(?P&amp;lt;elb_status_code&amp;gt;\S+))(\s+(?P&amp;lt;target_status_code&amp;gt;\S+))(\s+(?P&amp;lt;received_bytes&amp;gt;\d+))(\s+(?P&amp;lt;sent_bytes&amp;gt;\d+))(\s+"(?P&amp;lt;request&amp;gt;[^"]+)")(\s+"(?P&amp;lt;user_agent&amp;gt;[^"]+)")(\s+(?P&amp;lt;ssl_cipher&amp;gt;\S+))(\s+(?P&amp;lt;ssl_protocol&amp;gt;\S+))(\s+(?P&amp;lt;target_group_arn&amp;gt;\S+))(\s+"(?P&amp;lt;trace_id&amp;gt;[^"]+)")(\s+"(?P&amp;lt;domain_name&amp;gt;[^"]+)")?(\s+"(?P&amp;lt;chosen_cert_arn&amp;gt;[^"]+)")?(\s+(?P&amp;lt;matched_rule_priority&amp;gt;\S+))?(\s+(?P&amp;lt;request_creation_time&amp;gt;\S+))?(\s+"(?P&amp;lt;actions_executed&amp;gt;[^"]+)")?(\s+"(?P&amp;lt;redirect_url&amp;gt;[^"]+)")?(\s+"(?P&amp;lt;error_reason&amp;gt;[^"]+)")?
EVAL-rtt = request_processing_time + target_processing_time + response_processing_time
priority = 1
SHOULD_LINEMERGE = false
TIME_PREFIX = ^.*?(?=20\d\d-\d\d)
TIME_FORMAT =    
MAX_TIMESTAMP_LOOKAHEAD = 28


[aws:elb:accesslogs]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 19:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709863#M117266</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2025-01-27T19:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp assignment not working ELB logs Splunk Add-on for AWS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709870#M117267</link>
      <description>&lt;P&gt;Have you check that this REGEX and also your TIME_PREFIX is working? Try those e.g. regex101.com. I’m not sure what all you could have in TIME_PREFIX?&lt;/P&gt;&lt;P&gt;This seems to be working at least on regex101.com, but check that it works also with splunk rex command.&lt;/P&gt;&lt;P&gt;Btw which HEC endpoint you are using? Some of those are not extracting timestamp!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 21:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-assignment-not-working-ELB-logs-Splunk-Add-on-for-AWS/m-p/709870#M117267</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-01-27T21:50:49Z</dc:date>
    </item>
  </channel>
</rss>

