<?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 Calculated field in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Calculated-field/m-p/690398#M10095</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have a field extraction&amp;nbsp; and a calculated field which is not working&lt;BR /&gt;Please let me know whether there is any other way to extract it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EXTRACT-User = \"path\"\:\"auth\/(abc|xyz)\/login\/(?&amp;lt;User&amp;gt;[\w\_]+)
EVAL-user = if(error="invalid credentials",User,'auth.display_name')&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;"auth.display_name" is the existing field&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 23:44:28 GMT</pubDate>
    <dc:creator>VijaySrrie</dc:creator>
    <dc:date>2024-06-19T23:44:28Z</dc:date>
    <item>
      <title>Calculated field</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Calculated-field/m-p/690398#M10095</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have a field extraction&amp;nbsp; and a calculated field which is not working&lt;BR /&gt;Please let me know whether there is any other way to extract it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EXTRACT-User = \"path\"\:\"auth\/(abc|xyz)\/login\/(?&amp;lt;User&amp;gt;[\w\_]+)
EVAL-user = if(error="invalid credentials",User,'auth.display_name')&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;"auth.display_name" is the existing field&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 23:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Calculated-field/m-p/690398#M10095</guid>
      <dc:creator>VijaySrrie</dc:creator>
      <dc:date>2024-06-19T23:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated field</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Calculated-field/m-p/691128#M10102</link>
      <description>&lt;P&gt;Before you do your eval statement, test that your extraction works.&lt;BR /&gt;In your query, use a rex statement to see test this.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="47px"&gt;...&lt;BR /&gt;| rex field=&amp;lt;&lt;EM&gt;your_field&amp;gt;&amp;nbsp;&lt;/EM&gt;"&lt;SPAN&gt;\"path\"\:\"auth\/(abc|xyz)\/login\/(?&amp;lt;User&amp;gt;[\w\_]+)"&lt;BR /&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Then once you confirm you extracting your User field values, add the eval statement in the query.&lt;BR /&gt;Once you confirm that works, you can then go back to your sourcetype, and modify your extract and eval lines.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this reply helps you, Karma would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 18:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Calculated-field/m-p/691128#M10102</guid>
      <dc:creator>antoniolamonica</dc:creator>
      <dc:date>2024-06-19T18:10:55Z</dc:date>
    </item>
  </channel>
</rss>

