<?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: Need assistance in setting a sourcetype--date/time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694751#M115433</link>
    <description>&lt;P&gt;You probably could define TIME_PREFIX to find that timestamp.&amp;nbsp; However, is the timestamp present for every event or just once in the file?&amp;nbsp; If the latter, then start writing code to re-process that file into something Splunk can ingest more easily.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 00:11:20 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-07-31T00:11:20Z</dc:date>
    <item>
      <title>Need assistance in setting a sourcetype--date/time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694578#M115419</link>
      <description>&lt;P&gt;I am trying to create a sourcetype for a new client:&lt;/P&gt;&lt;P&gt;Note StartDate=xxxx is where the log begins.&amp;nbsp; However the StartTime=*** is not with it, but I need both int he logs.&amp;nbsp; How do I create this sourcetype?&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set StartDate=Mon 07/29/2024&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set sdy=2024&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set sdm=07&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set sdd=29&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set sdy=2024&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set sdm=07&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set sdd=29&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxx&amp;gt;set StartTime=14:45:09.56&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any assistance would be very helpful and appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 18:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694578#M115419</guid>
      <dc:creator>NanSplk01</dc:creator>
      <dc:date>2024-07-29T18:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance in setting a sourcetype--date/time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694580#M115420</link>
      <description>&lt;P&gt;Wow.&amp;nbsp; The developer that created that log needs to be taught how to use Splunk so he can see how awful his creation is.&lt;/P&gt;&lt;P&gt;Is that one event or several?&amp;nbsp; Or is that the prologue to the log file?&lt;/P&gt;&lt;P&gt;You may be able to use a custom datetime.xml file or you may want to consider an input script that normalizes the timestamp.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 19:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694580#M115420</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-29T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance in setting a sourcetype--date/time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694581#M115421</link>
      <description>&lt;P&gt;It is one of several blocks of lines inside the log file.&amp;nbsp; Each starts with the little snippet I put above and then has any number of lines after it.&amp;nbsp; While the file is a .txt, the look to me would be a xml document that pushes out the log file.&amp;nbsp; I've not seen one like it before.&amp;nbsp; I was thinking I'd need a props or transform or both to set this date/time, but it's my first experience with it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 19:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694581#M115421</guid>
      <dc:creator>NanSplk01</dc:creator>
      <dc:date>2024-07-29T19:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance in setting a sourcetype--date/time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694670#M115427</link>
      <description>&lt;P&gt;While every sourcetype should have props defined, this may be beyond what transforms can do.&amp;nbsp; Timestamp extraction happens before transforms are applied, which is why I suggested an input script do the work.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 12:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694670#M115427</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-30T12:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance in setting a sourcetype--date/time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694706#M115429</link>
      <description>&lt;P&gt;Well, I did find another line which has the date and time, but it's over 15 lines into the log file.&amp;nbsp; We need to start with the first line which is the beginning of the stanza, but get the timestamp which is 15th line showing after the opening line shown below&lt;/P&gt;&lt;P&gt;C:\Program Files\Universal\UAGSrv\xxxl_p01.nam&amp;gt;set StartDate=Tue 07/23/2024&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the actual timestamp which I think would work since it has both date and time (hoping that's what the _80514 is the time??&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Files\Universal\UAGSrv\xxx_p01.nam&amp;gt;set timestamp=20240723_80514 &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 16:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694706#M115429</guid>
      <dc:creator>NanSplk01</dc:creator>
      <dc:date>2024-07-30T16:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance in setting a sourcetype--date/time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694751#M115433</link>
      <description>&lt;P&gt;You probably could define TIME_PREFIX to find that timestamp.&amp;nbsp; However, is the timestamp present for every event or just once in the file?&amp;nbsp; If the latter, then start writing code to re-process that file into something Splunk can ingest more easily.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 00:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-in-setting-a-sourcetype-date-time/m-p/694751#M115433</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-31T00:11:20Z</dc:date>
    </item>
  </channel>
</rss>

