<?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 add a column in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/how-to-add-a-column/m-p/648793#M16702</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Based on your query, it should be there (just "correctly" formatted, &amp;nbsp;You get this by press Ctrl/Cmd+F)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| savedsearch ABC 
| join type=left BS_ID 
    [| search index="PQR" source=XYZ 
    | rename BS_CODE as BS_ID SERVICE_OWNER as "System Owner" BUSINESS_OWNER as "Business Owner" SERVICE_SUBCATEGORY as Function SDM_FULLNAME as SDM 
    | sort LOGICAL_NAME 
    | eval Application = DESCRIPTION 
    | rex mode=sed field=Application "s/^Managed//g" 
    | rex mode=sed field=Application "s/Application$//g" 
    | rex mode=sed field=Application "s/application$//g" 
    | eval Application = trim(Application) 
    | streamstats count as NO by BS_ID 
    | eventstats max(NO) as MaxTotal by BS_ID 
    | where NO=MaxTotal 
    | eval Function=case(Function="Service Excellence COE" and Application="Medical Insights Reporting","Service Excellence CoE",1=1,Function) 
    | table BS_ID Application Function SDM "System Owner" "Business Owner"] 
| lookup countries.csv name as COUNTRY outputnew latitude, longitude, name 
| eval COUNTRY = if(isnull(COUNTRY),"NA",COUNTRY) 
| eval DEPARTMENT_LONG_NAME = if(isnull(DEPARTMENT_LONG_NAME),"NA",DEPARTMENT_LONG_NAME) 
| eval DEPARTMENT_SHORT_NAME = if(isnull(DEPARTMENT_SHORT_NAME),"NA",DEPARTMENT_SHORT_NAME)&lt;/LI-CODE&gt;&lt;P&gt;Are you sure that your&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| savedsearch ABC &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;return that field, when you are running it that way?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 11:01:15 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-06-30T11:01:15Z</dc:date>
    <item>
      <title>how to add a column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/how-to-add-a-column/m-p/648789#M16701</link>
      <description>&lt;P&gt;Hi , needed a help. i need to add a column that is added newly to the sql data.below is the query&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| savedsearch &lt;FONT face="arial black,avant garde"&gt;ABC&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| join type=left BS_ID [| search index="PQR" source=XYZ&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| rename BS_CODE as BS_ID SERVICE_OWNER as "System Owner" BUSINESS_OWNER as "Business Owner" SERVICE_SUBCATEGORY as Function SDM_FULLNAME as SDM &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| sort LOGICAL_NAME | eval Application = DESCRIPTION&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| rex mode=sed field=Application "s/^Managed//g" | rex mode=sed field=Application "s/Application$//g" | rex mode=sed field=Application "s/application$//g"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| eval Application = trim(Application) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| streamstats count as NO by BS_ID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| eventstats max(NO) as MaxTotal by BS_ID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| where NO=MaxTotal&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;|eval Function=case(Function="Service Excellence COE" and Application="Medical Insights Reporting","Service Excellence CoE",1=1,Function)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| table BS_ID Application Function SDM "System Owner" "Business Owner"]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| lookup countries.csv name as COUNTRY outputnew latitude, longitude, name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| eval COUNTRY = if(isnull(COUNTRY),"NA",COUNTRY)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| eval DEPARTMENT_LONG_NAME = if(isnull(DEPARTMENT_LONG_NAME),"NA",DEPARTMENT_LONG_NAME)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;| eval DEPARTMENT_SHORT_NAME = if(isnull(DEPARTMENT_SHORT_NAME),"NA",DEPARTMENT_SHORT_NAME)&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;my ABC savedsearch has a column newly added as Category. i need to get into this saved search&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_0-1688120984970.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26092i915895E133805EFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_0-1688120984970.png" alt="Keerthi_0-1688120984970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 10:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/how-to-add-a-column/m-p/648789#M16701</guid>
      <dc:creator>Keerthi</dc:creator>
      <dc:date>2023-06-30T10:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a column</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/how-to-add-a-column/m-p/648793#M16702</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Based on your query, it should be there (just "correctly" formatted, &amp;nbsp;You get this by press Ctrl/Cmd+F)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| savedsearch ABC 
| join type=left BS_ID 
    [| search index="PQR" source=XYZ 
    | rename BS_CODE as BS_ID SERVICE_OWNER as "System Owner" BUSINESS_OWNER as "Business Owner" SERVICE_SUBCATEGORY as Function SDM_FULLNAME as SDM 
    | sort LOGICAL_NAME 
    | eval Application = DESCRIPTION 
    | rex mode=sed field=Application "s/^Managed//g" 
    | rex mode=sed field=Application "s/Application$//g" 
    | rex mode=sed field=Application "s/application$//g" 
    | eval Application = trim(Application) 
    | streamstats count as NO by BS_ID 
    | eventstats max(NO) as MaxTotal by BS_ID 
    | where NO=MaxTotal 
    | eval Function=case(Function="Service Excellence COE" and Application="Medical Insights Reporting","Service Excellence CoE",1=1,Function) 
    | table BS_ID Application Function SDM "System Owner" "Business Owner"] 
| lookup countries.csv name as COUNTRY outputnew latitude, longitude, name 
| eval COUNTRY = if(isnull(COUNTRY),"NA",COUNTRY) 
| eval DEPARTMENT_LONG_NAME = if(isnull(DEPARTMENT_LONG_NAME),"NA",DEPARTMENT_LONG_NAME) 
| eval DEPARTMENT_SHORT_NAME = if(isnull(DEPARTMENT_SHORT_NAME),"NA",DEPARTMENT_SHORT_NAME)&lt;/LI-CODE&gt;&lt;P&gt;Are you sure that your&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| savedsearch ABC &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;return that field, when you are running it that way?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 11:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/how-to-add-a-column/m-p/648793#M16702</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-06-30T11:01:15Z</dc:date>
    </item>
  </channel>
</rss>

