<?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 Splunk alert fields change in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-alert-fields-change/m-p/671308#M15580</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need help on below SPL query.&lt;/P&gt;&lt;P&gt;| eval ci= if (isnull(ci),host,ci),&lt;/P&gt;&lt;P&gt;As per current logic, if there is no value available in ci then it will take host name as ci. Here host value is Splunk HF.&lt;/P&gt;&lt;P&gt;I want should pick up server name or application name from the URL part instead of picking Splunk HF as host in ci filed.&lt;/P&gt;&lt;P&gt;How to change server name or application name from the URL part instead of picking Splunk HF as host in ci filed.&lt;/P&gt;&lt;P&gt;URL Examples : &lt;A href="http://abcdflpqr0012.abcd.xyz.com:5050/abcd/intro.html" target="_blank" rel="noopener"&gt;http://abcdflpqr0012.abcd.xyz.com:5050/abcd/intro.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://prod-abcd.xyz.com:14000/identity" target="_blank" rel="noopener"&gt;http://prod-abcd.xyz.com:14000/identity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please help me here.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 19:14:38 GMT</pubDate>
    <dc:creator>raghunandan1</dc:creator>
    <dc:date>2023-12-08T19:14:38Z</dc:date>
    <item>
      <title>Splunk alert fields change</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-fields-change/m-p/671308#M15580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need help on below SPL query.&lt;/P&gt;&lt;P&gt;| eval ci= if (isnull(ci),host,ci),&lt;/P&gt;&lt;P&gt;As per current logic, if there is no value available in ci then it will take host name as ci. Here host value is Splunk HF.&lt;/P&gt;&lt;P&gt;I want should pick up server name or application name from the URL part instead of picking Splunk HF as host in ci filed.&lt;/P&gt;&lt;P&gt;How to change server name or application name from the URL part instead of picking Splunk HF as host in ci filed.&lt;/P&gt;&lt;P&gt;URL Examples : &lt;A href="http://abcdflpqr0012.abcd.xyz.com:5050/abcd/intro.html" target="_blank" rel="noopener"&gt;http://abcdflpqr0012.abcd.xyz.com:5050/abcd/intro.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://prod-abcd.xyz.com:14000/identity" target="_blank" rel="noopener"&gt;http://prod-abcd.xyz.com:14000/identity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please help me here.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 19:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-fields-change/m-p/671308#M15580</guid>
      <dc:creator>raghunandan1</dc:creator>
      <dc:date>2023-12-08T19:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk alert fields change</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-alert-fields-change/m-p/671315#M15581</link>
      <description>&lt;P&gt;Extract the CI from the URL and use that in the &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=URL "https?:\/\/(?&amp;lt;url_ci&amp;gt;[^\.]+)"
| eval ci = coalesce(ci, url_ci)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 20:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-alert-fields-change/m-p/671315#M15581</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-12-08T20:49:40Z</dc:date>
    </item>
  </channel>
</rss>

