<?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: Modify search result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-search-result/m-p/657153#M226983</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;, its work as expected. Thank you very much for your assist.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 08:16:18 GMT</pubDate>
    <dc:creator>Akmal57</dc:creator>
    <dc:date>2023-09-11T08:16:18Z</dc:date>
    <item>
      <title>How to modify search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-search-result/m-p/657133#M226973</link>
      <description>&lt;P&gt;I have asset management data that i need to create weekly reports.&lt;/P&gt;
&lt;P&gt;When i make query for the data like query below:&lt;/P&gt;
&lt;P&gt;index=a sourcetype=b&lt;/P&gt;
&lt;P&gt;stats values(ip_addr) as ip by hostname&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;hostname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ip&lt;/P&gt;
&lt;P&gt;Host A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1) 10.0.0.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2) 10.10.10.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3) 10.0.0.2&lt;/P&gt;
&lt;P&gt;Host B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1) 192.1.1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2) 172.1.1.1&lt;/P&gt;
&lt;P&gt;i wanted the result not include the numbering in front of the ip address.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please assist on this. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-search-result/m-p/657133#M226973</guid>
      <dc:creator>Akmal57</dc:creator>
      <dc:date>2023-09-11T16:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-search-result/m-p/657134#M226974</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254344"&gt;@Akmal57&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you should remove numbering before stats.&amp;nbsp;Can you please try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR SEARCH
|rex field=ip_addr "(?&amp;lt;ip&amp;gt;\d+\.\d+\.\d+\.\d+)"
|stats values(ip) as ip by hostname&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="hostname,ip_addr
Host A,1) 10.0.0.0
Host A,2) 10.10.10.1
Host A,3) 10.0.0.2
Host B,1) 192.1.1.1
Host B,2) 172.1.1.1" 
| multikv forceheader=1
| table hostname,ip_addr
|rex field=ip_addr "(?&amp;lt;ip&amp;gt;\d+\.\d+\.\d+\.\d+)"
|stats values(ip) as ip by hostname&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-11 at 10.25.08 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27107i45649105729E8984/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-09-11 at 10.25.08 AM.png" alt="Screenshot 2023-09-11 at 10.25.08 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 04:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-search-result/m-p/657134#M226974</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2023-09-11T04:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modify search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-search-result/m-p/657153#M226983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;, its work as expected. Thank you very much for your assist.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 08:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-search-result/m-p/657153#M226983</guid>
      <dc:creator>Akmal57</dc:creator>
      <dc:date>2023-09-11T08:16:18Z</dc:date>
    </item>
  </channel>
</rss>

