<?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: Host override with event data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712323#M240324</link>
    <description>&lt;P&gt;I have 3 sources that I need to do this for and was able to have 2 come through putting the props in the TA that normalizes the data. The only difference in the 3 data sources is that the data source that I cant get to work is there is a space in the logs before its breaks. The regex that I have used for both other data sources is the same one that I I using just with a space prior to it. Not working though.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 01:36:24 GMT</pubDate>
    <dc:creator>boknows</dc:creator>
    <dc:date>2025-02-24T01:36:24Z</dc:date>
    <item>
      <title>Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712158#M240301</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have logs coming in with the host showing as the UF.&amp;nbsp; I want to replace the host value with some event data.&lt;BR /&gt;&lt;BR /&gt;Here is a sample of the data.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;ACME-001 HOST-003: status="407/0" srcip="1.0.0.2" user="VeroRivas" dhost="&lt;A href="http://test_web.net/contents/content1.jpg?aa=bb&amp;amp;cc=dd" target="_blank"&gt;http://test_web.net/contents/content1.jpg?aa=bb&amp;amp;cc=dd&lt;/A&gt;" urlp="401" proto="HTTP/https" mtd="CONNECT" urlc="Movie" rep="2" mt="text/html" mlwr="-" app="-" bytes="001/0/0/3180" ua="Mozilla/5.0 (webOS/1.3; U; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/1.0 Safari/525.27.1 Desktop/1.0" lat="0/0/0/3" rule="rule1 ok" url="&lt;A href="http://test_web.com/page3/c.jpg?ee=ff&amp;amp;gg=hh" target="_blank"&gt;http://test_web.com/page3/c.jpg?ee=ff&amp;amp;gg=hh&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;ACME-001 ops-sys-002: status="407/0" srcip="1.0.0.11" user="roisiningle" dhost="&lt;A href="http://test_web.net/contents/content1.jpg?aa=bb&amp;amp;cc=dd" target="_blank"&gt;http://test_web.net/contents/content1.jpg?aa=bb&amp;amp;cc=dd&lt;/A&gt;" urlp="401" proto="HTTP/https" mtd="CONNECT" urlc="Food" rep="-2" mt="text/html" mlwr="-" app="-" bytes="206/0/0/0040" ua="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1" lat="0/0/0/1" rule="rule1 ok" url="&lt;A href="http://test_web.com/page5/e.jpg?ee=ff&amp;amp;gg=hh" target="_blank"&gt;http://test_web.com/page5/e.jpg?ee=ff&amp;amp;gg=hh&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;ACME-001 BUSDEV-005: status="200/0" srcip="1.0.0.13" user="roonixr" dhost="&lt;A href="http://test_web.net/users/user2.jpg?ee=ff&amp;amp;gg=hh" target="_blank"&gt;http://test_web.net/users/user2.jpg?ee=ff&amp;amp;gg=hh&lt;/A&gt;" urlp="10" proto="HTTP/http" mtd="GET" urlc="Advertisement" rep="-3" mt="application/javascript" mlwr="-" app="-" bytes="142/020/032/023" ua="Mozilla/5.0 (X11; U; SunOS sun4m; en-US; rv:1.4b) Gecko/20030517 Mozilla Firebird/0.6" lat="0/05/30/53" rule="rule8 good" url="&lt;A href="http://test_web.net/users/user2.jpg?ee=ff&amp;amp;gg=hh" target="_blank"&gt;http://test_web.net/users/user2.jpg?ee=ff&amp;amp;gg=hh&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;ACME-001 is what I want to be used for the for the value of host. I am in a index cluster environment with 1 SH, CM, 2 IDX and 1 UF. I have pushed these props and transforms to the indexers with no success. The UF is still showing as the host value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Props&lt;BR /&gt;&lt;BR /&gt;[mcafee:wg:kv]&lt;BR /&gt;TRANSFORMS-changehost = changehost&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;DATETIME_CONFIG = current&lt;BR /&gt;#TIME_PREFIX =&lt;BR /&gt;#TIME_FORMAT =&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;#MAX_TIMESTAMP_LOOKAHEAD =&lt;BR /&gt;TRUNCATE = 999999&lt;BR /&gt;EVENT_BREAKER_ENABLE = true&lt;BR /&gt;EVENT_BREAKER = ([\r\n]+)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Transforms&lt;BR /&gt;&lt;BR /&gt;[changehost]&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;REGEX = ^(?P&amp;lt;host&amp;gt;\S+)&lt;BR /&gt;FORMAT = host::$1&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 00:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712158#M240301</guid>
      <dc:creator>boknows</dc:creator>
      <dc:date>2025-02-21T00:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712235#M240309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276693"&gt;@boknows&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the transforms.conf isn't correct: you aren't performing a field extraction, so please try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[changehost]
DEST_KEY = MetaData:Host
REGEX = ^([^\s]+)
FORMAT = host::$1&lt;/LI-CODE&gt;&lt;P&gt;Then, where did you locate them?&lt;/P&gt;&lt;P&gt;they must be located in the first full Splunk instance they pass through, in&amp;nbsp; other words in the first heavy Forwarder or, if not present any HF, in the Indexers.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712235#M240309</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-21T16:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712249#M240313</link>
      <description>&lt;P&gt;I am pushing the configs from the cluster master to two indexers. No HF. The change in transforms still did not work.&amp;nbsp; I am using the&amp;nbsp; Splunk_TA_mcafee-wg . Is it possible that&amp;nbsp; a configuration is taking precedence over my changes? I have tried making a local folder in the app and adding the props and transforms there. No luck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712249#M240313</guid>
      <dc:creator>boknows</dc:creator>
      <dc:date>2025-02-21T18:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712284#M240315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276693"&gt;@boknows&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;it's correct to put the configurations in the local folder of your TA.&lt;/P&gt;&lt;P&gt;What's the flow of your data? where do you receive data?&lt;/P&gt;&lt;P&gt;these seem to be data received by syslog and ususlly they are received in an Heavy Forwarder, could you describe the flow of your data through the Splunk machines?&lt;/P&gt;&lt;P&gt;In other words, I suppose that there's a syslog receiver, is it a Universal Forwarder or an Heavy Forwarder (a Splunk instance)?&lt;/P&gt;&lt;P&gt;if it is an UF, between it and the Indexers, is there some other Splunk machine? if yes, it is an UF or an HF?&lt;/P&gt;&lt;P&gt;At least if you're sure that there isn't any HF, put the add-on on the Indexers, otherwise on the first HF.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 06:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712284#M240315</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-22T06:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712288#M240319</link>
      <description>&lt;P&gt;Adding to the valid points already raised by &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; , "changehost" is a name which is not very unlikely to repeat in other&amp;nbsp; apps so I'd check with btool whether something doesn't overwrite it by any chance.&lt;/P&gt;&lt;PRE&gt;splunk btool transforms list changehost --debug&lt;/PRE&gt;&lt;P&gt;That's one thing.&lt;/P&gt;&lt;P&gt;Another one is - I'm never sure when you need to use WRITE_META and where you don't so I just to be on the safe side use it on all index-time extractions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 09:17:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712288#M240319</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-02-22T09:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712293#M240320</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Syslog is being sent to a UF and then to the Indexers. No HF to do parsing. Is what I am trying to accomplish possible using search time field extractions?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 17:50:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712293#M240320</guid>
      <dc:creator>boknows</dc:creator>
      <dc:date>2025-02-22T17:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712301#M240321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276693"&gt;@boknows&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;host is a metadata cofigured at index time, so it should be set once a time.&lt;/P&gt;&lt;P&gt;You could also define a calculated field that overrides the host field but I don't like.&lt;/P&gt;&lt;P&gt;So I hint to put the transformation on the Indexers, and eventually also on the UF even if isn't required.&lt;/P&gt;&lt;P&gt;Check, using the regex command in Splunk Search, if there's something different in your events because the regex doesn't run, e.g. a space at the beginning of the event.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 06:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712301#M240321</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-23T06:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712323#M240324</link>
      <description>&lt;P&gt;I have 3 sources that I need to do this for and was able to have 2 come through putting the props in the TA that normalizes the data. The only difference in the 3 data sources is that the data source that I cant get to work is there is a space in the logs before its breaks. The regex that I have used for both other data sources is the same one that I I using just with a space prior to it. Not working though.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 01:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712323#M240324</guid>
      <dc:creator>boknows</dc:creator>
      <dc:date>2025-02-24T01:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712338#M240325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/276693"&gt;@boknows&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host_override]
DEST_KEY = MetaData:Host
REGEX = ^\s*([^\s]+)
FORMAT = host::$1&lt;/LI-CODE&gt;&lt;P&gt;to manage the data sources with the space at the beginning of the events.&lt;/P&gt;&lt;P&gt;and, as suggested by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;, change the name of the transformation.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 07:52:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712338#M240325</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-02-24T07:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Host override with event data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712612#M240372</link>
      <description>&lt;P&gt;Changing the name made it work. I had the same class names in the transforms that had different regex. I appreciate the assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 15:23:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Host-override-with-event-data/m-p/712612#M240372</guid>
      <dc:creator>boknows</dc:creator>
      <dc:date>2025-02-26T15:23:42Z</dc:date>
    </item>
  </channel>
</rss>

