<?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 Why is my props.conf for a specific sourcetype not working as expected? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325216#M60479</link>
    <description>&lt;P&gt;When placing my props and transforms on my production system, I am not getting expected results.  It should be taking sourcetype webseal:syslog, which is ingested from /var/log/messages, and setting a new timestamp, host, and sourcetype.  The timestamps are all different.  The app is placed on our Heavy Forwarder (I know) in our Dev and production system.  It works perfectly in Dev, but nothing in production.&lt;/P&gt;

&lt;P&gt;Let's start with my props.conf, because I haven't confirmed any issue with transforms, and I know TIME_PREFIX isn't working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[webseal:syslog]
TIME_PREFIX = ^\w{3}\s+\d+\s\d+\:\d{2}\:\d{2}\s\S+\s\S+\s
SHOULD_LINEMERGE = False
TRANSFORMS-host = webseal-host
TRANSFORMS-sourcetype = webseal-null, request-ST, isam-ST, lavender-ST, pdweb-ST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's what I've checked:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Btool on the HFs shows it is reading props and transforms&lt;/LI&gt;
&lt;LI&gt;GUI on HFs shows it is reading props&lt;/LI&gt;
&lt;LI&gt;I checked all my regex statements within splunk search and on regex101.  all correct.&lt;/LI&gt;
&lt;LI&gt;tried putting props and transforms statements within a different parsing app that is working.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried putting props and transforms within system/local on HF.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried putting app on indexers instead.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried switching sourcetype name on inputs and props.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried switching props stanza to [source::/var/log/messages].  no luck.&lt;/LI&gt;
&lt;LI&gt;tried removing the app and setting only TIME_PREFIX through the gui on HF.  no luck.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;And yes, I restarted splunkd in between all my tests.  I've run out of ideas, and don't have any options other than ingesting all these logs from one file.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 20:41:23 GMT</pubDate>
    <dc:creator>matt144</dc:creator>
    <dc:date>2018-01-23T20:41:23Z</dc:date>
    <item>
      <title>Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325216#M60479</link>
      <description>&lt;P&gt;When placing my props and transforms on my production system, I am not getting expected results.  It should be taking sourcetype webseal:syslog, which is ingested from /var/log/messages, and setting a new timestamp, host, and sourcetype.  The timestamps are all different.  The app is placed on our Heavy Forwarder (I know) in our Dev and production system.  It works perfectly in Dev, but nothing in production.&lt;/P&gt;

&lt;P&gt;Let's start with my props.conf, because I haven't confirmed any issue with transforms, and I know TIME_PREFIX isn't working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[webseal:syslog]
TIME_PREFIX = ^\w{3}\s+\d+\s\d+\:\d{2}\:\d{2}\s\S+\s\S+\s
SHOULD_LINEMERGE = False
TRANSFORMS-host = webseal-host
TRANSFORMS-sourcetype = webseal-null, request-ST, isam-ST, lavender-ST, pdweb-ST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's what I've checked:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Btool on the HFs shows it is reading props and transforms&lt;/LI&gt;
&lt;LI&gt;GUI on HFs shows it is reading props&lt;/LI&gt;
&lt;LI&gt;I checked all my regex statements within splunk search and on regex101.  all correct.&lt;/LI&gt;
&lt;LI&gt;tried putting props and transforms statements within a different parsing app that is working.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried putting props and transforms within system/local on HF.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried putting app on indexers instead.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried switching sourcetype name on inputs and props.  no luck.&lt;/LI&gt;
&lt;LI&gt;tried switching props stanza to [source::/var/log/messages].  no luck.&lt;/LI&gt;
&lt;LI&gt;tried removing the app and setting only TIME_PREFIX through the gui on HF.  no luck.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;And yes, I restarted splunkd in between all my tests.  I've run out of ideas, and don't have any options other than ingesting all these logs from one file.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 20:41:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325216#M60479</guid>
      <dc:creator>matt144</dc:creator>
      <dc:date>2018-01-23T20:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325217#M60480</link>
      <description>&lt;P&gt;can you provide sample events ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 08:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325217#M60480</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-24T08:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325218#M60481</link>
      <description>&lt;P&gt;If it works in dev, but not in prod, can you perhaps highlight differences in those two environments?&lt;/P&gt;

&lt;P&gt;Is the data actually getting indexed with the webseal:syslog sourcetype? Just to rule out a typo in the inputs.conf in your production environment...&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 09:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325218#M60481</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-01-24T09:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325219#M60482</link>
      <description>&lt;P&gt;Dev is basically a simple SH-IDX-HF environment.  In production we have a SH cluster, Indexer cluster, and two HFs.  Outside of that we try to keep them as similar as possible, but there are way too many little differences, but nothing that I can think of that should make a difference.&lt;/P&gt;

&lt;P&gt;It is being logged with webseal:syslog as the sourcetype.  I also tried using the source too, so it's definitely not a typo.  &lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 12:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325219#M60482</guid>
      <dc:creator>matt144</dc:creator>
      <dc:date>2018-01-24T12:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325220#M60483</link>
      <description>&lt;P&gt;Sure.  The last one without the timestamp is the one that goes to the nullqueue.&lt;/P&gt;

&lt;P&gt;Jan 22 11:15:16 avc-abcdsa-0023 webseal-something01-httpclf-fds[60611] 10.10.102.42 10.123.10.5 MJDKDSA 22/Jan/2018:11:15:02 -0500 001095374 "GET /LavenderService/resources/Cases/123456/rss/ HTTP/1.1" 200 24699 - - "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; Microsoft Outlook 15.0.4981; ms-office; MSOffice 15)"&lt;BR /&gt;
Jan 22 11:34:30 abc-jdfkld-0025 webseal-something01-stats-fds[61219] 2018-01-22-11:34:00.000+00:00I----- pdweb.authn total#011 : 0.032&lt;BR /&gt;
Jan 19 00:08:16 abc-fjdks-0027 webseal-something01-msglog-abc[31479] 2018-01-19-00:08:02.897-05:00I----- 0x38CF0966 webseald WARNING wwa cdsso authn-failover.cpp 304 0x7f485be38700 -- DPWWA2406W   Could not find the failover session ID in the user's failover token&lt;BR /&gt;
Jan 22 11:38:15 abc-fjdks-0028 webseal-something01-stats-abc[59546] 2018-01-22-11:38:00.000+00:00I----- pdweb.threads 'default' total#011 : 1000&lt;BR /&gt;
Jan 22 11:40:41 abc-jfkdd-a002 audispd: node=abc-jfkdd-a002.abc.local type=USER_END msg=audit(1516639241.153:6626356): pid=21293 uid=0 auid=0 ses=943618 subj=system_u:system_r:crond_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_loginuid,pam_keyinit,pam_limits acct="root" exe="/usr/sbin/crond" hostname=? addr=? terminal=cron res=success'&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325220#M60483</guid>
      <dc:creator>matt144</dc:creator>
      <dc:date>2020-09-29T17:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325221#M60484</link>
      <description>&lt;P&gt;So the purpose of that timeprefix is to get splunk to use the (more detailed) timestamp that is in the event, rather than the one at the start of the line?&lt;BR /&gt;
Wondering if Splunk's automatic timestamp detection (since you don't specify a time format) is able to deal with all these formats here and whether it is able to deal with multiple formats coming in the same file. Then again, you say it is working correctly in DEV, does DEV also have all these different formats in 1 file?&lt;/P&gt;

&lt;P&gt;Can you not use a syslog daemon to split these different logs into separate files, rather than having splunk sort out the 'mess'?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 13:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325221#M60484</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-01-24T13:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325222#M60485</link>
      <description>&lt;P&gt;Yes, the second timestamp is the more accurate timestamp.  On our Dev system, which is the same version, Splunk does read all the different time formats correctly.  &lt;/P&gt;

&lt;P&gt;As of right now, I was told this is our only option as far as the syslog goes.  We previously had it broken out.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 13:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325222#M60485</guid>
      <dc:creator>matt144</dc:creator>
      <dc:date>2018-01-24T13:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325223#M60486</link>
      <description>&lt;P&gt;I also just oneshot (with sourcetype )some sample log from the prod system to the dev system.  The dev system read it correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 14:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325223#M60486</guid>
      <dc:creator>matt144</dc:creator>
      <dc:date>2018-01-24T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325224#M60487</link>
      <description>&lt;P&gt;Thanks for everyone's help.&lt;/P&gt;

&lt;P&gt;It turns out the admins installed a HF on the syslog server, rather than a UF.  So the logs were coming in marked as parsed, and skipping directly to the index queue. &lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325224#M60487</guid>
      <dc:creator>matt144</dc:creator>
      <dc:date>2018-01-25T16:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my props.conf for a specific sourcetype not working as expected?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325225#M60488</link>
      <description>&lt;P&gt;Thanks for coming back and sharing what the actual solution was. Please don't forget to click accept on your answer.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 17:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-props-conf-for-a-specific-sourcetype-not-working-as/m-p/325225#M60488</guid>
      <dc:creator>Anam</dc:creator>
      <dc:date>2018-01-25T17:41:10Z</dc:date>
    </item>
  </channel>
</rss>

