<?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: How to change each instance of a field search result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628497#M218309</link>
    <description>&lt;P&gt;Please share some sample events in a code block &amp;lt;/&amp;gt; since normal pasting can alter the (white-space) formatting.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 15:18:34 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-01-26T15:18:34Z</dc:date>
    <item>
      <title>How to change each instance of a field search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628486#M218302</link>
      <description>&lt;P&gt;I'm doing a search for server names and will eventually extract to to a csv. However, each result comes out as one of the following&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;BR /&gt;&lt;EM&gt;servername.domain: servername.domain&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;servername: servername.domain&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;servername: servername&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;How can I change the results in that particular field to be just&amp;nbsp;&lt;EM&gt;servername&lt;/EM&gt;? I feel like this is where regular expressions may come in to play.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 19:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628486#M218302</guid>
      <dc:creator>atebysandwich</dc:creator>
      <dc:date>2023-01-26T19:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change each instance of a field search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628487#M218303</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=particular "\w+:(?&amp;lt;servername&amp;gt;\w+)\.)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Jan 2023 14:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628487#M218303</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-26T14:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to change each instance of a field search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628488#M218304</link>
      <description>&lt;P&gt;Unfortunately that didn't work. The field results still come out the same. But I noticed they come out in a few different ways:&lt;BR /&gt;&lt;BR /&gt;servername.domain: servername.domain&lt;BR /&gt;servername: servername.domain&lt;BR /&gt;servername: servername&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 14:43:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628488#M218304</guid>
      <dc:creator>atebysandwich</dc:creator>
      <dc:date>2023-01-26T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to change each instance of a field search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628497#M218309</link>
      <description>&lt;P&gt;Please share some sample events in a code block &amp;lt;/&amp;gt; since normal pasting can alter the (white-space) formatting.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 15:18:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628497#M218309</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-26T15:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to change each instance of a field search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628673#M218387</link>
      <description>&lt;P&gt;I was able to figure out the issue without regex - I was looking at the wrong field. Thank you for the help,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-each-instance-of-a-field-search-result/m-p/628673#M218387</guid>
      <dc:creator>atebysandwich</dc:creator>
      <dc:date>2023-01-27T19:33:41Z</dc:date>
    </item>
  </channel>
</rss>

