<?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: Hex Time Stamp Extraction issues with DATETIME_CONFIG in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78253#M4233</link>
    <description>&lt;P&gt;Aw, now we can't see what the initial problem was! Don't be mad but I'll revert your question to the version that shows them.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2011 00:12:48 GMT</pubDate>
    <dc:creator>hexx</dc:creator>
    <dc:date>2011-09-20T00:12:48Z</dc:date>
    <item>
      <title>Hex Time Stamp Extraction issues with DATETIME_CONFIG</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78250#M4230</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;I have a log file from EMC where the timestamp is in hex:  timeStamp="0x4E665CB6000269D7".  I have provided a sample log snippet and all the .conf files below.  I can't get it to recognize the hex time stamp.  What am I doing wrong?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;log file:&lt;/STRONG&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;CheckEvent: Request  : &amp;lt;CheckEventRequest&amp;gt;
  &amp;lt;EventList count="1"&amp;gt;
    &amp;lt;Event event="0x100000" path="\\omega22.w2k8r2.vee.com\CHECK$\server2fs1\test" flag="0x2" protocol="0" server="OMEGA22" share="server2fs1" clientIP="10.245.72.115" serverIP="10.245.72.209" timeStamp="0x4E665CB6000269D7" userSid="S-1-5-21-3594340890-534397530-1661201549-500" ownerSid="S-1-5-21-3594340890-534397530-1661201549-500" fileSize="0x0" desiredAccess="0x100081" createDispo="0x1" ntStatus="0x0" relativePath="\\OMEGA22\server2fs1\test"/&amp;gt;
  &amp;lt;/EventList&amp;gt;
&amp;lt;/CheckEventRequest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///Users/dmaislin/Desktop/EMC/fsc.txt]
disabled = false
followTail = 0
sourcetype = emc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/Users/dmaislin/Desktop/EMC/fsc.txt]
sourcetype=emc

[emc]
TIME_PREFIX = timeStamp
MAX_TIMESTAMP_LOOKAHEAD = 9999
BREAK_ONLY_BEFORE = CheckEvent:
MUST_NOT_BREAK_BEFORE = &amp;lt;/CheckEventRequest&amp;gt;
SHOULD_LINEMERGE = TRUE
DATETIME_CONFIG = /etc/system/local/emc-epoch.xml
REPORT-xmlkv = xmlkv-alternative
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xmlkv-alternative]
REGEX = &amp;lt;([^\s\&amp;gt;]*)[^\&amp;gt;]*\&amp;gt;([^&amp;lt;]*)\&amp;lt;\/\1\&amp;gt;
FORMAT = $1::$2
MV_ADD = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;emc-epoch.xml&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
         &amp;lt;define name="_hexepoch" extract="hexepoch"&amp;gt;
           &amp;lt;text&amp;gt;&amp;lt;![CDATA[timeStamp="0x([A-Fa-f0-9]{8})]]&amp;gt;&amp;lt;/text&amp;gt;
         &amp;lt;/define&amp;gt;
         &amp;lt;timePatterns&amp;gt;
           &amp;lt;use name="_hexepoch"/&amp;gt;
         &amp;lt;/timePatterns&amp;gt;
         &amp;lt;datePatterns&amp;gt;
         &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Sep 2011 20:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78250#M4230</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2011-09-19T20:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hex Time Stamp Extraction issues with DATETIME_CONFIG</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78251#M4231</link>
      <description>&lt;P&gt;The 1st problem I can see here is that the source-based stanza &lt;CODE&gt;[source:///Users/dmaislin/Desktop/EMC/fsc.txt]&lt;/CODE&gt; will take precedence over the sourcetype-based &lt;CODE&gt;[emc]&lt;/CODE&gt; stanza.&lt;/P&gt;

&lt;P&gt;As per &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf" target="_blank"&gt;props.conf.spec&lt;/A&gt; :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**[&amp;lt;spec&amp;gt;] stanza precedence:**

For settings that are specified in multiple categories of matching [&amp;lt;spec&amp;gt;] stanzas,
[host::&amp;lt;host&amp;gt;] settings override [&amp;lt;sourcetype&amp;gt;] settings. Additionally,
[source::&amp;lt;source&amp;gt;] settings override both [host::&amp;lt;host&amp;gt;] and
[&amp;lt;sourcetype&amp;gt;] settings.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should &lt;EM&gt;not&lt;/EM&gt; have two stanzas here.&lt;/P&gt;

&lt;P&gt;Also :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Your &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; should be :&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;CODE&gt;TIME_PREFIX = timeStamp="&lt;/CODE&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;...and to reflect this, I would suggest that you change your time-stamp extraction regex in emc-epoch.xml with :&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;CODE&gt;&lt;TEXT&gt;&amp;lt;![CDATA[0x([A-Fa-f0-9]{8})]]&amp;gt;&lt;/TEXT&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Your &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; should be anchored to the end of TIME_PREFIX, &lt;EM&gt;not&lt;/EM&gt; to the beginning of the event :&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 16&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78251#M4231</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2020-09-28T09:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hex Time Stamp Extraction issues with DATETIME_CONFIG</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78252#M4232</link>
      <description>&lt;P&gt;SOLVED.  Thanks!  All configs are updated above.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 23:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78252#M4232</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2011-09-19T23:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hex Time Stamp Extraction issues with DATETIME_CONFIG</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78253#M4233</link>
      <description>&lt;P&gt;Aw, now we can't see what the initial problem was! Don't be mad but I'll revert your question to the version that shows them.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2011 00:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78253#M4233</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2011-09-20T00:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hex Time Stamp Extraction issues with DATETIME_CONFIG</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78254#M4234</link>
      <description>&lt;P&gt;Here are the fixed files...&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///Users/dmaislin/Desktop/EMC/fsc.txt]
disabled = false
followTail = 0
sourcetype = emc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/Users/dmaislin/Desktop/EMC/fsc.txt]
TIME_PREFIX = timeStamp="
MAX_TIMESTAMP_LOOKAHEAD = 16
BREAK_ONLY_BEFORE = CheckEvent:
MUST_NOT_BREAK_BEFORE = &amp;lt;/CheckEventRequest&amp;gt;
SHOULD_LINEMERGE = TRUE
DATETIME_CONFIG = /etc/system/local/emc-epoch.xml
REPORT-xmlkv = xmlkv-alternative
sourcetype = emc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xmlkv-alternative]
REGEX = &amp;lt;([^\s\&amp;gt;]*)[^\&amp;gt;]*\&amp;gt;([^&amp;lt;]*)\&amp;lt;\/\1\&amp;gt;
FORMAT = $1::$2
MV_ADD = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;emc-epoch.xml&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
         &amp;lt;define name="_hexepoch" extract="hexepoch"&amp;gt;
           &amp;lt;text&amp;gt;&amp;lt;![CDATA[0x([A-Fa-f0-9]{8})]]&amp;gt;&amp;lt;/text&amp;gt;
         &amp;lt;/define&amp;gt;
         &amp;lt;timePatterns&amp;gt;
           &amp;lt;use name="_hexepoch"/&amp;gt;
         &amp;lt;/timePatterns&amp;gt;
         &amp;lt;datePatterns&amp;gt;
         &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:58:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Hex-Time-Stamp-Extraction-issues-with-DATETIME-CONFIG/m-p/78254#M4234</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2011-09-20T12:58:24Z</dc:date>
    </item>
  </channel>
</rss>

