<?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: Occasional trailing white space in created field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755889#M119926</link>
    <description>&lt;P&gt;I tried looking but I can't really find it. If it is a transforms affecting it, I am thinking shouldn't it have affected all events, and why it's only 1/30 events for example exhibiting the additional spaces at times. I am using the default windows TA, but I suppose my local props and transforms should have overwritten those.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 07:33:47 GMT</pubDate>
    <dc:creator>yh</dc:creator>
    <dc:date>2025-11-26T07:33:47Z</dc:date>
    <item>
      <title>Occasional trailing white space in created field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755795#M119914</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P data-unlink="true"&gt;I have this unusual problem where I am trying to modify the host name in my windows log (text file ingestion) in my heavy forwarder before it is forwarded to the indexer. The source for my windows data are text files with the following naming convention. i.e. Zone1_date.txt etc. Therefore, for my host field I am using the extracted zone and combining it with the host from the ComputerName field. The problem is that occassionally the created hostname becomes:&lt;BR /&gt;&lt;BR /&gt;Zone1@computerA.mydomain.net&amp;nbsp;&lt;BR /&gt;Zone1@computerA.mydomain.net[][][]&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;[][][] denotes white spaces that are additionally added from nowhere. It would be great if the traling spaces can be removed.&lt;BR /&gt;&lt;BR /&gt;In [props.conf]&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[XmlWinEventLog]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;TRANSFORMS-winxmlhost_override = winxmlhost_override&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;In [transforms.conf]&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;[winxmlhost_override]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;INGEST_EVAL = extracted_zone=replace(source, ".*(Zone\d{0,2}).*", "\1"), extracted_computername=replace(_raw, ".*&amp;lt;Computer&amp;gt;[\s\xa0]*([a-zA-Z0-9.\-_]+?)[\s\xa0]*&amp;lt;\/Computer&amp;gt;.*", "\1"), host=extracted_zone . "@" . extracted_computername&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have checked the raw files and I do not see any spaces in the &amp;lt;Computer&amp;gt;&amp;lt;/Computer&amp;gt; field so I am unsure where the spaces come from. The trailing spaces are seen in both extracted_computername and also the final host field but maybe in 1/30 events. Any advice on why it is happening and what better way should I use to append a dynamic pretext to my hostname?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 07:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755795#M119914</guid>
      <dc:creator>yh</dc:creator>
      <dc:date>2025-11-24T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional trailing white space in created field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755800#M119915</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264318"&gt;@yh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant really explain where the whitespace is coming from, but you could wrap a trip command around the replace to ensure any spaces/tabs are removed:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[winxmlhost_override]
INGEST_EVAL = extracted_zone=replace(source, ".*(Zone\d{0,2}).*", "\1"), extracted_computername=trim(replace(_raw, ".*&amp;lt;Computer&amp;gt;[\s\xa0]*([a-zA-Z0-9.\-_]+?)[\s\xa0]*&amp;lt;\/Computer&amp;gt;.*", "\1")), host=extracted_zone . "@" . extracted_computername&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 10:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755800#M119915</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-11-24T10:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional trailing white space in created field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755801#M119916</link>
      <description>&lt;P&gt;Can you share the raw event(s) for which this is happening, preferably using the code block &amp;lt;/&amp;gt; so that formatting information is not lost. Obviously, obfuscate any sensitive information but keep this to a minimum.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 11:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755801#M119916</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-11-24T11:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional trailing white space in created field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755822#M119917</link>
      <description>&lt;P&gt;I tried using trim in the ingest_eval but it still shows the mystery white spaces occasionally. I am wondering perhaps I should do a trim host on all incoming inputs to the sourcetype in the indexer too.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 01:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755822#M119917</guid>
      <dc:creator>yh</dc:creator>
      <dc:date>2025-11-25T01:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional trailing white space in created field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755823#M119918</link>
      <description>&lt;P&gt;I have analyzed the event that has these white spaces based on the full timestamp added and opened up the source text file with notepad++ but I don't see any different in the Computer field though.&lt;BR /&gt;&lt;BR /&gt;The field looks like this:&lt;BR /&gt;&amp;lt;Computer&amp;gt;XXXX_A.yyyy.zzzz&amp;lt;/Computer&amp;gt;&lt;BR /&gt;&lt;BR /&gt;With no whitespace at all when I show all symbols in notepad++. So it's quite confusing between the heavy forwarder and indexer where did the two white space came from.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 02:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755823#M119918</guid>
      <dc:creator>yh</dc:creator>
      <dc:date>2025-11-25T02:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional trailing white space in created field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755832#M119919</link>
      <description>&lt;P&gt;Are you sure there are no more transforms affecting that data? Maybe you have something defined for [default]? Or some other host- or source-based definition?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 14:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755832#M119919</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-11-25T14:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Occasional trailing white space in created field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755889#M119926</link>
      <description>&lt;P&gt;I tried looking but I can't really find it. If it is a transforms affecting it, I am thinking shouldn't it have affected all events, and why it's only 1/30 events for example exhibiting the additional spaces at times. I am using the default windows TA, but I suppose my local props and transforms should have overwritten those.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 07:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Occasional-trailing-white-space-in-created-field/m-p/755889#M119926</guid>
      <dc:creator>yh</dc:creator>
      <dc:date>2025-11-26T07:33:47Z</dc:date>
    </item>
  </channel>
</rss>

