<?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: edit fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/edit-fields/m-p/558047#M158483</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223364"&gt;@sphiwee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
|rex field=url "(?&amp;lt;pc_name&amp;gt;[a-z0-9|-]+)\.[a-z0-9|-]+\.[a-z0-9|-]+\.[a-z]+"&lt;/LI-CODE&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;LI-CODE lang="markup"&gt;| makeresults | eval url="http://030313bipc142w.za.sbicdirectory.com:4444/grid/console"
|rex field=url "(?&amp;lt;pc_name&amp;gt;[a-z0-9|-]+)\.[a-z0-9|-]+\.[a-z0-9|-]+\.[a-z]+"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 16:41:15 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-07-01T16:41:15Z</dc:date>
    <item>
      <title>edit fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/edit-fields/m-p/558043#M158480</link>
      <description>&lt;P&gt;I have the below column whereby im pinging the url in the column, but for a nicer view I only want to display&amp;nbsp;&lt;/P&gt;&lt;P&gt;the pc name eg "03131bipc142w"&amp;nbsp; is this possible?&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="sphiwee_0-1625156354876.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14912i79B0374D7758F602/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sphiwee_0-1625156354876.png" alt="sphiwee_0-1625156354876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 16:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/edit-fields/m-p/558043#M158480</guid>
      <dc:creator>sphiwee</dc:creator>
      <dc:date>2021-07-01T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: edit fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/edit-fields/m-p/558046#M158482</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223364"&gt;@sphiwee&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if your request is how to modify a log in Splunk, the answer is: not possible on already indexed logs!&lt;/P&gt;&lt;P&gt;if your request is to modify the field uri displayed in the dashboard, you can use a regex to extract only the part of the field that you want, please try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| rex field=uri "http:\/\/(?&amp;lt;url&amp;gt;[^\.]+)"
| table url&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/eekkf4/1" target="_blank"&gt;https://regex101.com/r/eekkf4/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 16:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/edit-fields/m-p/558046#M158482</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-07-01T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: edit fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/edit-fields/m-p/558047#M158483</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223364"&gt;@sphiwee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
|rex field=url "(?&amp;lt;pc_name&amp;gt;[a-z0-9|-]+)\.[a-z0-9|-]+\.[a-z0-9|-]+\.[a-z]+"&lt;/LI-CODE&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;LI-CODE lang="markup"&gt;| makeresults | eval url="http://030313bipc142w.za.sbicdirectory.com:4444/grid/console"
|rex field=url "(?&amp;lt;pc_name&amp;gt;[a-z0-9|-]+)\.[a-z0-9|-]+\.[a-z0-9|-]+\.[a-z]+"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 16:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/edit-fields/m-p/558047#M158483</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-01T16:41:15Z</dc:date>
    </item>
  </channel>
</rss>

