<?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: troubleshooting props.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525294#M148218</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/156517"&gt;@mitag&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;only one question: what's your architecture? have you any Heavy forwarders?&lt;/P&gt;&lt;P&gt;if yes, the props.conf must be also on HFs.&lt;/P&gt;&lt;P&gt;In addition to debug your parsing, I need a sample of your logs, could you share them?&lt;/P&gt;&lt;P&gt;Anyway, if you want to have multiline events, you should try with SHOULD_LINEMERGE = true.&lt;/P&gt;&lt;P&gt;About the field extraction (at search time) you have to put props.conf in the Search Head,&lt;/P&gt;&lt;P&gt;At least, it isn't clear for me your info: "&lt;SPAN&gt;&lt;EM&gt;The logs are getting ingested - yet Splunk appears to ignore the relevant stanza in props.conf as if it doesn't exist.&amp;nbsp;&lt;/EM&gt;", what do you mean?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are the not taken logs the ones in the stanza you shared or a different one?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check if the logs you want to take in that stanza aren't also in another stanza, because Splunk takes a log once also if you have it in two or more stanzas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 06:55:09 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-10-19T06:55:09Z</dc:date>
    <item>
      <title>troubleshooting props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525286#M148215</link>
      <description>&lt;P&gt;If there's an error in a props.conf stanza for a particular sourcetype, where would it show up in the logs? E.g. a key like "SHOULD_LINEMERGE" is misspelled or one of the values is out of bounds or something else where Splunk is having issues with the stanza... Where in the logs would this show up?&lt;/P&gt;&lt;P&gt;My specific case: &lt;SPAN class="s1"&gt;&lt;FONT face="andale mono,times" color="#800080"&gt;/opt/splunk/etc/slave-apps/_cluster/local/props.conf&lt;/FONT&gt;&amp;nbsp;on the master (propagated to indexers):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sweeper:abcnews]
SHOULD_LINEMERGE            = false
MAX_TIMESTAMP_LOOKAHEAD     = 30
TIME_FORMAT                 = %Y-%m-%d %H:%M:%S,%3N
TIME_PREFIX                 = ^
TRUNCATE                    = 100000
MAX_EVENTS                  =  10000

EXTRACT-sweeper_abcnews = (?s)^\d+-\d+-\d+\s+\d+\:\d+\:\d+\,\d+\s+(?P&amp;lt;module&amp;gt;\S+)\s+\[(?P&amp;lt;processID&amp;gt;.+?)\]\s+(?P&amp;lt;log_level&amp;gt;\S+):\s+(?P&amp;lt;message&amp;gt;.*)$&lt;/LI-CODE&gt;&lt;P class="p1"&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;SPAN class="s1"&gt;The primary purposes of the stanza in props.conf is to allow multiline, define event breaks (timestamps, basically) and extract fields.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;SPAN class="s1"&gt;Splunk however appears to ignore the stanza altogether: multiline events get broken up, no fields are extracted.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;SPAN class="s1"&gt;The field extraction regex works well elsewhere: tested via "rex" at search time, in "field extractions" at search time, and also in props.conf in a dev splunk instance. It's as if Splunk is ignoring the stanza altogether in the production instance. Why, and how do I troubleshoot this?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;&lt;SPAN class="s1"&gt;Additional context:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;FONT face="andale mono,times" color="#800080"&gt;/opt/splunk/etc/deployment-apps/_server_app_Linux_Clients/local/inputs.conf&lt;/FONT&gt; in DS, distributed to clients:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/sweeper_abcnews.log]
disabled   = false
index      = sweeper
sourcetype = sweeper:abcnews&lt;/LI-CODE&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The logs are getting ingested - yet Splunk appears to ignore the relevant stanza in props.conf as if it doesn't exist. Other stanzas in props.conf &lt;EM&gt;seem&lt;/EM&gt; to be working - as multiline events in other sourcetypes do not get broken up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Appreciate the help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 04:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525286#M148215</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-10-19T04:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: troubleshooting props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525289#M148216</link>
      <description>&lt;P&gt;Just in case, extra context:&lt;/P&gt;&lt;P&gt;Splunk Enterprise 8.04.1, clustered indexers, single search head.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 06:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525289#M148216</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-10-19T06:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: troubleshooting props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525294#M148218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/156517"&gt;@mitag&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;only one question: what's your architecture? have you any Heavy forwarders?&lt;/P&gt;&lt;P&gt;if yes, the props.conf must be also on HFs.&lt;/P&gt;&lt;P&gt;In addition to debug your parsing, I need a sample of your logs, could you share them?&lt;/P&gt;&lt;P&gt;Anyway, if you want to have multiline events, you should try with SHOULD_LINEMERGE = true.&lt;/P&gt;&lt;P&gt;About the field extraction (at search time) you have to put props.conf in the Search Head,&lt;/P&gt;&lt;P&gt;At least, it isn't clear for me your info: "&lt;SPAN&gt;&lt;EM&gt;The logs are getting ingested - yet Splunk appears to ignore the relevant stanza in props.conf as if it doesn't exist.&amp;nbsp;&lt;/EM&gt;", what do you mean?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are the not taken logs the ones in the stanza you shared or a different one?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check if the logs you want to take in that stanza aren't also in another stanza, because Splunk takes a log once also if you have it in two or more stanzas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 06:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525294#M148218</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-19T06:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: troubleshooting props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525297#M148220</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;"what's your architecture? have you any Heavy forwarders?"&lt;/P&gt;&lt;P&gt;Yes to HFs. The logs in question don't pass through them.&lt;/P&gt;&lt;P&gt;Architecture: Master, SH, DS, three clustered indexers.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"&lt;SPAN&gt;In addition to debug your parsing, I need a sample of your logs, could you share them?&lt;/SPAN&gt;"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-10-16 14:00:49,041 sweeper_abcnews [14839] ERROR: Unhandled exception: Traceback (most recent call last):
 File "/code/sweeper_abcnews/sweeper_abcnews.py", line 520, in &amp;lt;module&amp;gt;
 main(args.type, conn)
 File "/code/sweeper_abcnews/sweeper_abcnews.py", line 349, in main
 for outline in ascpOutput:
 File "/code/sweeper_abcnews/sweeper_abcnews.py", line 233, in runascp
 raise subprocess.CalledProcessError(return_code, fullCmdList)
CalledProcessError: Command '['/bin/ascp', '-l', '1G', '-i', '--file-checksum=md5', '--partial-file-suffix=.partial', '--move-after-transfer=/__DONE', '--remove-empty-directories', 'some_user@11.22.33.44:/_UPLOADS/201016_test_file.mp4.ttml', '/Volumes/SomeVolume/File/Path/Here']' returned non-zero exit status 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"&lt;SPAN&gt;Anyway, if you want to have multiline events, you should try with SHOULD_LINEMERGE = true.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;You're probably right yet the same stanza worked in a dev instance for this same log, and works for other similar multiline sourcetypes and keeps the multiline events together.&amp;nbsp;Unsure why. I'll try it, still.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"&lt;SPAN&gt;About the field extraction (at search time) you have to put props.conf in the Search Head&lt;/SPAN&gt;"&lt;/P&gt;&lt;P data-unlink="true"&gt;I use settings -&amp;gt; fields -&amp;gt; field extraction on the SH in Splunk Web and it seems to work.... ("https://sh.splunk.local/en-US/manager/search/data/props/extractions"&amp;nbsp;&amp;nbsp;)&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;"&lt;SPAN&gt;At least, it isn't clear for me your info: "&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;The logs are getting ingested - yet Splunk appears to ignore the relevant stanza in props.conf as if it doesn't exist.&amp;nbsp;&lt;/EM&gt;", what do you mean?&lt;/SPAN&gt;"&lt;/P&gt;&lt;P data-unlink="true"&gt;Single line events get ingested correctly, except for field extraction at index time. Multiline ones - do not: get broken. Field extraction specified in props.conf doesn't work. Beyond that -&amp;nbsp;not sure how to make it clearer.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 07:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525297#M148220</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-10-19T07:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: troubleshooting props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525301#M148222</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/156517"&gt;@mitag&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the logs in question don't pass through the HF, this isn't the problem, but remember this issue.&lt;/P&gt;&lt;P&gt;About the pro.conf, I found only two differences with your:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SHOULD_LINEMERGE = True&lt;/LI&gt;&lt;LI&gt;MAX_TIMESTAMP_LOOKAHEAD = 23&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Did you checked if there are other stanzas that address the same logs (files and/or folders)?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 07:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troubleshooting-props-conf/m-p/525301#M148222</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-19T07:53:52Z</dc:date>
    </item>
  </channel>
</rss>

