<?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: Getting my priority's straight in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36399#M6642</link>
    <description>&lt;P&gt;Couldn't you run btool&lt;/P&gt;

&lt;P&gt;bin/splunk btool props list | less&lt;/P&gt;

&lt;P&gt;And list out what the composite props.conf file is?&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2013 18:16:04 GMT</pubDate>
    <dc:creator>wbfoxii</dc:creator>
    <dc:date>2013-05-16T18:16:04Z</dc:date>
    <item>
      <title>Getting my priority's straight</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36397#M6640</link>
      <description>&lt;P&gt;I have a question about how priority's work in a single props.conf file.  If i have the two stanzas below and I index a file localted at /opt/system1/apps/logs/myfile.log what is the complete stanza that is used for processing the data.  I am running 4.3.5&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::/opt/*/apps/logs/*.log]&lt;BR /&gt;
sourcetype=sourcetype1&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
TIME_FORMAT=%F %H:%M:%S,%3N&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)(\d{4}-\d{2}-\d{2})&lt;BR /&gt;
priority = 1&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[source::/opt/system1/apps/logs/myfile.log]&lt;BR /&gt;
sourcetype=sourcetype2&lt;BR /&gt;
DATETIME_CONFIG=CURRENT&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
priority = 2&lt;BR /&gt;
MAX_EVENTS = 1&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Because the source of the file matches both stanzas does Splunk merge the two stanzas together and any duplicate settings will be set to the stanza with the highest priority?&lt;/P&gt;

&lt;P&gt;Would the final settings that get applied be&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=sourcetype2&lt;BR /&gt;
DATETIME_CONFIG=CURRENT&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
MAX_EVENTS = 1&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
TIME_FORMAT=%F %H:%M:%S,%3N&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)(\d{4}-\d{2}-\d{2})&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 14:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36397#M6640</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-05-16T14:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting my priority's straight</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36398#M6641</link>
      <description>&lt;P&gt;Last stanza applied wins.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 16:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36398#M6641</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-16T16:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting my priority's straight</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36399#M6642</link>
      <description>&lt;P&gt;Couldn't you run btool&lt;/P&gt;

&lt;P&gt;bin/splunk btool props list | less&lt;/P&gt;

&lt;P&gt;And list out what the composite props.conf file is?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 18:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36399#M6642</guid>
      <dc:creator>wbfoxii</dc:creator>
      <dc:date>2013-05-16T18:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting my priority's straight</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36400#M6643</link>
      <description>&lt;P&gt;Yes I have done that and btool is showing that merging the stanzas together is NOT the case,  BUT my logs are not  line breaking correctly and the only thing that would have made sense is if they are being merged together so i figured I would ask.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 18:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36400#M6643</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-05-16T18:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting my priority's straight</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36401#M6644</link>
      <description>&lt;P&gt;I am not sure how you have your inputs.conf configured, but I seems you should be doing your sourcetype separation there. I've included a sample of an inputs.conf and props.conf I would use for your scenario.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
#inputs.conf&lt;BR /&gt;
[monitor:///opt/*/apps/logs/*.log]&lt;BR /&gt;
blacklist=/opt/system1/apps/logs/myfile.log&lt;BR /&gt;
sourcetype=sourcetype1&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
[monitor:///opt/system1/apps/logs/myfile.log]&lt;BR /&gt;
sourcetype=sourcetype2&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
#props.conf&lt;BR /&gt;
[sourcetype1]&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
TIME_FORMAT=%F %H:%M:%S,%3N&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)(\d{4}-\d{2}-\d{2})&lt;BR /&gt;
priority = 1&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
[sourcetype2]&lt;BR /&gt;
DATETIME_CONFIG=CURRENT&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
priority = 2&lt;BR /&gt;
MAX_EVENTS = 1&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps or gives you some ideas.  Dont forget to vote and accept answser that help.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 21:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36401#M6644</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-16T21:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting my priority's straight</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36402#M6645</link>
      <description>&lt;P&gt;My configurations pretty much match what you have. the problem is that sourcetype2 is not following the max_events=1 rule (events are being made up of multiple lines instead of 1 line per event). If i add the time_prefix, time_format_and line_breaker setting to sourcetype2 stanza then my events will be made up of multiple lines, (this goes back to my reason for posting to see if the stanzas are getting merged together which would explain why my events are being made up of multiple lines.)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-my-priority-s-straight/m-p/36402#M6645</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2020-09-28T13:55:38Z</dc:date>
    </item>
  </channel>
</rss>

