<?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: eval not working in props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582715#M102660</link>
    <description>&lt;P&gt;Then you should check your btool output on search-head, not on indexer.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 10:24:57 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-01-27T10:24:57Z</dc:date>
    <item>
      <title>Why does eval search work but eval in the props conf file doesn't creating new field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582348#M102602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;My environment has multiple apps. I got a requirement to default a value to a temp field. While my eval in the search works but eval in the props conf file isn't creating the new field. Please help me troubleshoot.&lt;/P&gt;
&lt;P&gt;My conf files are below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;INPUTS ON FORWARDERS:
[monitor:///var/log/omega]
index=foo_bar_transaction
sourcetype=foo_car

PROPS ON SHC:
[foo_car]
EVAL-tempvariable = "Test_Eval"
EVAL-datacenter = if(IN(mvindex(split(host,"-"),1),"clc","dkn"),"DANGER",mvindex(split(host,"-"),1))

INDEXER:
/opt/splunk/bin/splunk cmd btool props list foo_car --debug
/opt/splunk/etc/slave-apps/INFRA_APP_logs/default/props.conf [foo_car]
/opt/splunk/etc/system/default/props.conf                        ADD_EXTRA_TIME_FIELDS = True
/opt/splunk/etc/system/default/props.conf                        ANNOTATE_PUNCT = True
/opt/splunk/etc/system/default/props.conf                        AUTO_KV_JSON = true
/opt/splunk/etc/system/default/props.conf                        BREAK_ONLY_BEFORE =
/opt/splunk/etc/system/default/props.conf                        BREAK_ONLY_BEFORE_DATE = True
/opt/splunk/etc/system/default/props.conf                        CHARSET = UTF-8
/opt/splunk/etc/system/default/props.conf                        DATETIME_CONFIG = /etc/datetime.xml
/opt/splunk/etc/system/default/props.conf                        DEPTH_LIMIT = 1000
/opt/splunk/etc/system/default/props.conf                        HEADER_MODE =
/opt/splunk/etc/system/default/props.conf                        LEARN_MODEL = true
/opt/splunk/etc/system/default/props.conf                        LEARN_SOURCETYPE = true
/opt/splunk/etc/system/default/props.conf                        LINE_BREAKER_LOOKBEHIND = 100
/opt/splunk/etc/system/default/props.conf                        MATCH_LIMIT = 100000
/opt/splunk/etc/system/default/props.conf                        MAX_DAYS_AGO = 2000
/opt/splunk/etc/system/local/props.conf                          MAX_DAYS_HENCE = 40
/opt/splunk/etc/system/default/props.conf                        MAX_DIFF_SECS_AGO = 3600
/opt/splunk/etc/system/default/props.conf                        MAX_DIFF_SECS_HENCE = 604800
/opt/splunk/etc/system/default/props.conf                        MAX_EVENTS = 256
/opt/splunk/etc/system/default/props.conf                        MAX_TIMESTAMP_LOOKAHEAD = 128
/opt/splunk/etc/system/default/props.conf                        MUST_BREAK_AFTER =
/opt/splunk/etc/system/default/props.conf                        MUST_NOT_BREAK_AFTER =
/opt/splunk/etc/system/default/props.conf                        MUST_NOT_BREAK_BEFORE =
/opt/splunk/etc/system/default/props.conf                        SEGMENTATION = indexing
/opt/splunk/etc/system/default/props.conf                        SEGMENTATION-all = full
/opt/splunk/etc/system/default/props.conf                        SEGMENTATION-inner = inner
/opt/splunk/etc/system/default/props.conf                        SEGMENTATION-outer = outer
/opt/splunk/etc/system/default/props.conf                        SEGMENTATION-raw = none
/opt/splunk/etc/system/default/props.conf                        SEGMENTATION-standard = standard
/opt/splunk/etc/system/default/props.conf                        SHOULD_LINEMERGE = True
/opt/splunk/etc/system/default/props.conf                        TRANSFORMS =
/opt/splunk/etc/system/default/props.conf                        TRUNCATE = 10000
/opt/splunk/etc/system/default/props.conf                        detect_trailing_nulls = false
/opt/splunk/etc/system/default/props.conf                        maxDist = 100
/opt/splunk/etc/system/default/props.conf                        priority =
/opt/splunk/etc/system/default/props.conf                        sourcetype =&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 00:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582348#M102602</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2022-02-17T00:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: eval not working in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582374#M102611</link>
      <description>If you want add new fields on index time you should use transforms.conf and INGEST_EVAL.</description>
      <pubDate>Tue, 25 Jan 2022 08:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582374#M102611</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-01-25T08:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: eval not working in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582377#M102612</link>
      <description>&lt;P&gt;Do you want this field as a calculated field in search-time or as an indexed field evaluated an ingest time?&lt;/P&gt;&lt;P&gt;Your props.conf definition seems relatively well defined for search-time calculated field. But&lt;/P&gt;&lt;P&gt;1) Does the user you're searching with have proper permissions to the app the field is defined in?&lt;/P&gt;&lt;P&gt;2) Are you sure you're not using fast mode?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 08:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582377#M102612</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-01-25T08:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: eval not working in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582631#M102640</link>
      <description>&lt;P&gt;I want them at search-time please&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582631#M102640</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2022-01-26T23:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: eval not working in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582632#M102641</link>
      <description>&lt;P&gt;1) Does the user you're searching with have proper permissions to the app the field is defined in?&lt;/P&gt;&lt;P&gt;Yes - searching as admin user&lt;/P&gt;&lt;P&gt;2) Are you sure you're not using fast mode?&lt;/P&gt;&lt;P&gt;smart mode&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582632#M102641</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2022-01-26T23:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: eval not working in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582715#M102660</link>
      <description>&lt;P&gt;Then you should check your btool output on search-head, not on indexer.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 10:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/582715#M102660</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-01-27T10:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: eval not working in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/585256#M102977</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;- your 1) point is valid. I have defined the field extraction inside a custom app. But doing the search from default search app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I just run a search from search app with that sourcetype and get my extracted field. I can see the permissions on that app are read/write to everyone&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 04:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/585256#M102977</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2022-02-16T04:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: eval not working in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/585287#M102987</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If you want to use some KOs (knowledge objects) from individual apps on some other app, then you must change that KO's permission to Global from App (or private). See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Knowledge/Manageknowledgeobjectpermissions" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Knowledge/Manageknowledgeobjectpermissions.&lt;/A&gt;You seems to have already RW access to that app so it should be enough that you give globally read permission to this KO.&lt;/P&gt;&lt;P&gt;When you are sharing objects from apps to global you must also check the precedence if/when there are other KOs with same name! My proposal is to take global naming standard into use if you haven't do it yet.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 07:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-eval-search-work-but-eval-in-the-props-conf-file-doesn/m-p/585287#M102987</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-02-16T07:37:24Z</dc:date>
    </item>
  </channel>
</rss>

