<?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: ingest_eval works on AIO instance but different results when applied at the HF tier in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/746140#M118583</link>
    <description>&lt;P&gt;Hello, Bellow is the solution for your question.&lt;/P&gt;&lt;P&gt;1. /opt/log/syslog-ng-sample.log&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;May 13 15:09:09 1.2.3.4 sim: logging for test&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;/opt/splunk/etc/apps/myapp/lookups/lookup.csv&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host,host_value
1.2.3.4,myhostname&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;3.&amp;nbsp;/opt/splunk/etc/apps/myapp/local/props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TRANSFORMS-host_override = host_override&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;/opt/splunk/etc/apps/myapp/local/transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host_override]
INGEST_EVAL = host=replace(_raw, "^\w+\s+\d+\s+\d+:\d+:\d+\s+([^ ]+)\s+.*", "\1"), hostname=host,  host=json_extract(lookup("lookup.csv",json_object("host",host),json_array("host_value")),"host_value")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;5. Result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victor1004k_0-1747191294744.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39000iC07DBDAAEC35BBD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victor1004k_0-1747191294744.jpeg" alt="victor1004k_0-1747191294744.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 06:51:44 GMT</pubDate>
    <dc:creator>victor1004k</dc:creator>
    <dc:date>2025-05-19T06:51:44Z</dc:date>
    <item>
      <title>ingest_eval works on AIO instance but different results when applied at the HF tier</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/677956#M113308</link>
      <description>&lt;P&gt;I have syslog events being written to a HF locally via syslog-ng - these events are then consumed via file reader and the IP address in the log name is extracted as host.&lt;/P&gt;&lt;P&gt;I now want to run an ingest_eval on the ip address and use a lookup to change the host&lt;/P&gt;&lt;P&gt;If i run the cmd from search i get the required result:&lt;BR /&gt;&lt;BR /&gt;index=... | eval host=json_extract(lookup("lookup.csv",json_object("host",host),json_array("host_value")),"host_value")&lt;/P&gt;&lt;P&gt;this replaces host with "host_value"&lt;/P&gt;&lt;P&gt;I have this working on an AIO instance with the following config below:&lt;/P&gt;&lt;P&gt;Now adding to HF tier : /opt/splunk/etc/apps/myapp/lookups/lookup.csv&lt;BR /&gt;lookup has global access and export = system&lt;BR /&gt;host,host_value&lt;BR /&gt;1.2.3.4, myhostname&lt;/P&gt;&lt;P&gt;props.conf:&lt;BR /&gt;[mysourcetype]&lt;BR /&gt;TRANSFORMS-host_override = host_override&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;transforms.conf:&lt;BR /&gt;[host_override]&lt;BR /&gt;INGEST_EVAL =host=json_extract(lookup("lookup.csv",json_object("host",host),json_array("host_value")),"host_value")&lt;/P&gt;&lt;P&gt;When applied on the HF (restarted)&amp;nbsp; i see some of the hostnames are changed to "localhost" the others remain unchanged (but this is due to the config not working OR the data coming from another HF with the test config not applied&lt;/P&gt;&lt;P&gt;Any ideas - thx&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 23:35:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/677956#M113308</guid>
      <dc:creator>Skins</dc:creator>
      <dc:date>2024-02-18T23:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: ingest_eval works on AIO instance but different results when applied at the HF tier</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/696012#M115533</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/219274"&gt;@Skins&lt;/a&gt;&amp;nbsp;hi) I faced the same limitation - the inability to use Ingest-time lookup on hw, did you manage to solve this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 14:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/696012#M115533</guid>
      <dc:creator>moja</dc:creator>
      <dc:date>2024-08-12T14:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: ingest_eval works on AIO instance but different results when applied at the HF tier</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/746138#M118582</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/219274"&gt;@Skins&lt;/a&gt;&amp;nbsp;, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271095"&gt;@moja&lt;/a&gt;&amp;nbsp;Hello, Bellow is the solution for your question.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; /opt/log/syslog-ng-sample.log&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;May 13 15:09:09 1.2.3.4 sim: logging for test&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;/opt/splunk/etc/apps/myapp/lookups/lookup.csv&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host,host_value
1.2.3.4,myhostname&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;3.&amp;nbsp;/opt/splunk/etc/apps/myapp/local/props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TRANSFORMS-host_override = host_override&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;/opt/splunk/etc/apps/myapp/local/transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host_override]
INGEST_EVAL = host=replace(_raw, "^\w+\s+\d+\s+\d+:\d+:\d+\s+([^ ]+)\s+.*", "\1"), hostname=host,host=json_extract(lookup("lookup.csv",json_object("host",host),json_array("host_value")),"host_value")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ingest-time-lookup-for-syslog-ng.jpg" style="width: 625px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38999i651C3DE341C9907E/image-size/large?v=v2&amp;amp;px=999" role="button" title="ingest-time-lookup-for-syslog-ng.jpg" alt="ingest-time-lookup-for-syslog-ng.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 08:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/746138#M118582</guid>
      <dc:creator>victor1004k</dc:creator>
      <dc:date>2025-05-26T08:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: ingest_eval works on AIO instance but different results when applied at the HF tier</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/746140#M118583</link>
      <description>&lt;P&gt;Hello, Bellow is the solution for your question.&lt;/P&gt;&lt;P&gt;1. /opt/log/syslog-ng-sample.log&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;May 13 15:09:09 1.2.3.4 sim: logging for test&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;/opt/splunk/etc/apps/myapp/lookups/lookup.csv&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host,host_value
1.2.3.4,myhostname&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;3.&amp;nbsp;/opt/splunk/etc/apps/myapp/local/props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TRANSFORMS-host_override = host_override&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;/opt/splunk/etc/apps/myapp/local/transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host_override]
INGEST_EVAL = host=replace(_raw, "^\w+\s+\d+\s+\d+:\d+:\d+\s+([^ ]+)\s+.*", "\1"), hostname=host,  host=json_extract(lookup("lookup.csv",json_object("host",host),json_array("host_value")),"host_value")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;5. Result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victor1004k_0-1747191294744.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39000iC07DBDAAEC35BBD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victor1004k_0-1747191294744.jpeg" alt="victor1004k_0-1747191294744.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 06:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ingest-eval-works-on-AIO-instance-but-different-results-when/m-p/746140#M118583</guid>
      <dc:creator>victor1004k</dc:creator>
      <dc:date>2025-05-19T06:51:44Z</dc:date>
    </item>
  </channel>
</rss>

