<?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: Props.conf EXTRACT stopped working after stanza change in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-EXTRACT-stopped-working-after-stanza-change/m-p/410693#M72740</link>
    <description>&lt;P&gt;I have found the answer as to why the old extraction didn't work:&lt;/P&gt;

&lt;P&gt;despite that &lt;CODE&gt;inputs.conf&lt;/CODE&gt; defines the input as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/containers/*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the stanza in &lt;CODE&gt;props.conf&lt;/CODE&gt; has to be as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/containers/*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I apologise for above error also being present in the &lt;EM&gt;working version&lt;/EM&gt; above.&lt;BR /&gt;
However, that does not explain why the new extraction (using the sourcetype) does not work.&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 09:33:05 GMT</pubDate>
    <dc:creator>Burritobizon</dc:creator>
    <dc:date>2018-05-25T09:33:05Z</dc:date>
    <item>
      <title>Props.conf EXTRACT stopped working after stanza change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-EXTRACT-stopped-working-after-stanza-change/m-p/410692#M72739</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;This morning, i have changed the configuration of an inline extraction in &lt;CODE&gt;props.conf&lt;/CODE&gt;.&lt;BR /&gt;
The original Extraction (this worked):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::///var/log/containers/*.log]
EXTRACT-sourcedata = (?&amp;lt;containers&amp;gt;(?&amp;lt;=containers\/).*?(?=_)).(?&amp;lt;namespace&amp;gt;.*(?=_)).(?&amp;lt;service&amp;gt;.*(?=-)) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then changed the extraction to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[docker_json]
EXTRACT-sourcedata = (?&amp;lt;containers&amp;gt;(?&amp;lt;=containers\/).*?(?=_)).(?&amp;lt;namespace&amp;gt;.*(?=_)).(?&amp;lt;service&amp;gt;.*(?=-)) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;because the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; file defines the sourcetype as follows ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/containers/*.log]
sourcetype = docker_json
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;..., this should work.&lt;BR /&gt;
however, the change did not work. I proceeded to undo said change, yet the old extraction stopped working as well.&lt;/P&gt;

&lt;P&gt;Why is that? Does it take time for splunk to apply inline extractions?&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 09:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-EXTRACT-stopped-working-after-stanza-change/m-p/410692#M72739</guid>
      <dc:creator>Burritobizon</dc:creator>
      <dc:date>2018-05-25T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf EXTRACT stopped working after stanza change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-EXTRACT-stopped-working-after-stanza-change/m-p/410693#M72740</link>
      <description>&lt;P&gt;I have found the answer as to why the old extraction didn't work:&lt;/P&gt;

&lt;P&gt;despite that &lt;CODE&gt;inputs.conf&lt;/CODE&gt; defines the input as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/containers/*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the stanza in &lt;CODE&gt;props.conf&lt;/CODE&gt; has to be as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/containers/*.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I apologise for above error also being present in the &lt;EM&gt;working version&lt;/EM&gt; above.&lt;BR /&gt;
However, that does not explain why the new extraction (using the sourcetype) does not work.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 09:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-EXTRACT-stopped-working-after-stanza-change/m-p/410693#M72740</guid>
      <dc:creator>Burritobizon</dc:creator>
      <dc:date>2018-05-25T09:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf EXTRACT stopped working after stanza change</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-EXTRACT-stopped-working-after-stanza-change/m-p/410694#M72741</link>
      <description>&lt;P&gt;At risk of stating the obvious, but:&lt;BR /&gt;
- did you deploy the config in the right place (your search head(s))?&lt;BR /&gt;
- you're not rewriting the sourcetype to something else at index time?&lt;BR /&gt;
- no conflicting configs due to previous attempts? (e.g. check with btool)&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 11:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-EXTRACT-stopped-working-after-stanza-change/m-p/410694#M72741</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-25T11:41:14Z</dc:date>
    </item>
  </channel>
</rss>

