<?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: Is it possible to combine multiple [&amp;lt;spec&amp;gt;] stanza? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/699817#M115914</link>
    <description>&lt;P&gt;Update: After further testing it does not work.&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;I used&amp;nbsp;&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;props.conf&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;-------------&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;[tcp] AND [host:server1]&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;TRANSFORMS-random=filterports&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;And it seems to work as expected. Applies the TRANSFORM on for tcp from server1.&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;Thou, I didn't seem to find any official documentation.&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;It's good if you want to test on a single server before applying to the whole sourcetype.&lt;/STRIKE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 13:20:39 GMT</pubDate>
    <dc:creator>rokxer</dc:creator>
    <dc:date>2024-09-23T13:20:39Z</dc:date>
    <item>
      <title>Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627772#M107733</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;
&lt;P&gt;Using props.conf file, is it possible to combine multiple&amp;nbsp;[&amp;lt;spec&amp;gt;] stanza ?&lt;BR /&gt;I would like to set up a specific&amp;nbsp;LINE_BREAKER but only for a source of a specific host...&lt;/P&gt;
&lt;P&gt;Is something like&amp;nbsp;[host::&amp;lt;whatever&amp;gt;] + [source::&amp;lt;whatever&amp;gt;] possible ?&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;GaetanVP&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 15:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627772#M107733</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2023-01-20T15:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627840#M107739</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;my understanding is that this is not possible. There are defined on conf file docs how this is working and what is the precedence for those. Somehow you could do this by using clone sourcetype, but probably the way how you are hoping?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 21:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627840#M107739</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-01-20T21:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627848#M107740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231013"&gt;@GaetanVP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't think this is possible. However, you can configure LINE_BREAKER to break lines on multiple different sequences of characters e.g. LINE_BREAKER =&amp;nbsp;(\r\n)*({\"time\"|\{\"timestamp\") would break on both {"time" and {"timestamp". I'm not sure if this will meet your requirements but wanted to mention it just in case it does.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 22:48:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627848#M107740</guid>
      <dc:creator>jamie00171</dc:creator>
      <dc:date>2023-01-20T22:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627957#M107762</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Okok, indeed I would like to avoid clone sourcetype but I will keep that in mind if needed.&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;GaetanVP&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 09:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627957#M107762</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2023-01-23T09:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627958#M107763</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/211432"&gt;@jamie00171&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This can be very useful in my use case, not exactly what I had in mind but it seems to be a real Splunk limitation !&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer,&lt;/P&gt;&lt;P&gt;GateanVP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 09:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627958#M107763</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2023-01-23T09:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627987#M107764</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Admin/Propsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;&lt;PRE&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;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 13:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/627987#M107764</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-01-23T13:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/628132#M107800</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;,&amp;nbsp; thanks for your answer&lt;/P&gt;&lt;P&gt;This give details about settings precedence but I understand there is no possibility to &lt;STRONG&gt;combine&amp;nbsp;&lt;/STRONG&gt;stanza&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GaetanVP&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/628132#M107800</guid>
      <dc:creator>GaetanVP</dc:creator>
      <dc:date>2023-01-24T13:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/628133#M107801</link>
      <description>&lt;P&gt;Yes. If you have multiple matching stanzas, results from the highest privilege stanza applies. (If we're talking about overlapping settings)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/628133#M107801</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-01-24T13:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/699817#M115914</link>
      <description>&lt;P&gt;Update: After further testing it does not work.&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;I used&amp;nbsp;&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;props.conf&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;-------------&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;[tcp] AND [host:server1]&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;TRANSFORMS-random=filterports&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;And it seems to work as expected. Applies the TRANSFORM on for tcp from server1.&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;Thou, I didn't seem to find any official documentation.&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;It's good if you want to test on a single server before applying to the whole sourcetype.&lt;/STRIKE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/699817#M115914</guid>
      <dc:creator>rokxer</dc:creator>
      <dc:date>2024-09-23T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to combine multiple [&lt;spec&gt;] stanza?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/699837#M115917</link>
      <description>&lt;P&gt;No. It does not work this way.&lt;/P&gt;&lt;P&gt;As I quoted earlier in this thread, the settings are applied in order of stanza precedence (after the final config is decided from separate files according to the configuration files precedence).&lt;/P&gt;&lt;P&gt;So [source::something] settings have highest precedence, then [host::something] and finally just [sourcetype] settings. You can't do logical conditions between those stanzas.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-combine-multiple-lt-spec-gt-stanza/m-p/699837#M115917</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-23T13:24:17Z</dc:date>
    </item>
  </channel>
</rss>

