<?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: join in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690417#M56571</link>
    <description>&lt;P&gt;and your second data set contains these fields?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tower,&amp;nbsp;metric_value,&amp;nbsp;alert_value,&amp;nbsp;add_info,&amp;nbsp;instance,&amp;nbsp;source_host, Ticket_Number&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 05:22:40 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-06-12T05:22:40Z</dc:date>
    <item>
      <title>join</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690414#M56568</link>
      <description>&lt;P&gt;index=acn_ac_snow_ticket_idx code_message=create uid="*Saml : Days to expire*" OR uid="*Self_Signed : Days to expire*" OR uid="*CA : Days to expire*" OR uid="*Entrust : Days to expire*"&lt;BR /&gt;| rex field=_raw "\"(?&amp;lt;INC&amp;gt;INC\d+),"&lt;BR /&gt;| rex field=uid "(?i)^(?P&amp;lt;source_host&amp;gt;.+?)__"&lt;BR /&gt;| table INC uid log_description source_host&lt;BR /&gt;| dedup INC uid log_description source_host&lt;BR /&gt;| rename INC as "Ticket_Number"&lt;BR /&gt;| selfjoin source_host&lt;BR /&gt;[ search index=acn_lendlease_certificate_tier3_idx tower=*&lt;BR /&gt;| table *]&lt;BR /&gt;| stats latest(tower) as Tower, latest(source_host) as source_host , latest(metric_value) as "Days To Expire", latest(alert_value) as alert_value, latest(add_info) as "Additional Info" by instance,Ticket_Number&lt;BR /&gt;| eval alert_value=case(alert_value==100,"Active",alert_value==300,"About to Expire", alert_value==500,"Expired")&lt;BR /&gt;| where alert_value="Active"&lt;BR /&gt;| search Tower="*" AND alert_value="*"&lt;BR /&gt;| sort "Days To Expire"&lt;BR /&gt;| rename instance as "Serial Number / Server ID", Tower as "Certificate Type" , source_host as Certificate , alert_value as "Certificate Status"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying to map incident number with respect to source_host using join command&lt;BR /&gt;but its not working as expected&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 04:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690414#M56568</guid>
      <dc:creator>pavithra</dc:creator>
      <dc:date>2024-06-12T04:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: join</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690415#M56569</link>
      <description>&lt;P&gt;Are you using selfjoin or join?&lt;/P&gt;&lt;P&gt;Either way, selfjoin is not the right command - join is also not the way to do things in Splunk as it has limitations, however, your SPL indicates your 2 data sets have&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=acn_ac_snow_ticket_idx -&amp;nbsp;INC (Ticket_Number) uid log_description source_host&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=acn_lendlease_certificate_tier3_idx - tower,&amp;nbsp;metric_value,&amp;nbsp;alert_value,&amp;nbsp;add_info,&amp;nbsp;instance,&amp;nbsp;source_host&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and you are trying to join these two on source_host&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 05:16:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690415#M56569</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-12T05:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: join</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690416#M56570</link>
      <description>&lt;P&gt;yes&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have created regex to extract incident details and source host&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 05:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690416#M56570</guid>
      <dc:creator>pavithra</dc:creator>
      <dc:date>2024-06-12T05:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: join</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690417#M56571</link>
      <description>&lt;P&gt;and your second data set contains these fields?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tower,&amp;nbsp;metric_value,&amp;nbsp;alert_value,&amp;nbsp;add_info,&amp;nbsp;instance,&amp;nbsp;source_host, Ticket_Number&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 05:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690417#M56571</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-12T05:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: join</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690418#M56572</link>
      <description>&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 05:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690418#M56572</guid>
      <dc:creator>pavithra</dc:creator>
      <dc:date>2024-06-12T05:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: join</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690419#M56573</link>
      <description>&lt;P&gt;Your original search is rather unclear, so here is an attempt at removing the need to join, i.e. to do it the Splunk way, so it searches both data sets and creates the common fields&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your original join attempt wanted source_host but you are splitting by ticket number, so is is possible that there can be multiple source_host per ticket number?&lt;/P&gt;&lt;P&gt;Can there also be more than one instance per ticket number?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=acn_ac_snow_ticket_idx code_message=create uid="*Saml : Days to expire*" OR uid="*Self_Signed : Days to expire*" OR uid="*CA : Days to expire*" OR uid="*Entrust : Days to expire*") OR
(index=acn_lendlease_certificate_tier3_idx tower=*)
| rex field=_raw "\"(?&amp;lt;INC&amp;gt;INC\d+)," 
| eval ticket=coalesce(INC, Ticket_Number)
| rex field=uid "(?i)^(?P&amp;lt;snow_source_host&amp;gt;.+?)__" 
| eval source_host=coalesce(snow_source_host, source_host)
| stats latest(tower) as Tower, latest(source_host) as source_host , latest(metric_value) as "Days To Expire", latest(alert_value) as alert_value, latest(add_info) as "Additional Info" values(instance) by ticket 
| eval alert_value=case(alert_value==100,"Active",alert_value==300,"About to Expire", alert_value==500,"Expired") 
| where alert_value="Active" 
| search Tower="*" AND alert_value="*" 
| sort "Days To Expire" 
| rename instance as "Serial Number / Server ID", Tower as "Certificate Type" , source_host as Certificate , alert_value as "Certificate Status"&lt;/LI-CODE&gt;&lt;P&gt;Not sure if this will give you what you want - but if not, please provide some anonymised data for each data type and show how you are trying to combine them because it's not clear from the search.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 05:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690419#M56573</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-12T05:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: join</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690424#M56574</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavithra_0-1718170697573.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31281i027118E447CE1C3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavithra_0-1718170697573.png" alt="pavithra_0-1718170697573.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi bowesmana&lt;BR /&gt;Thanks for the efforts&lt;BR /&gt;we have data sets&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=acn_lendlease_certificate_tier3_idx tower=Self_Signed_Certificate
| stats latest(tower) as Tower, latest(source_host) as source_host , latest(metric_value) as "Days To Expire", latest(alert_value) as alert_value, latest(add_info) as "Additional Info" by instance
| eval alert_value=case(alert_value==100,"Active",alert_value==300,"About to Expire", alert_value==500,"Expired")
| where alert_value="About to Expire"
| search Tower="*" AND alert_value="*"
| sort "Days To Expire"
| rename instance as "Serial Number / Server ID", Tower as "Certificate Type" , source_host as Certificate , alert_value as "Certificate Status"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavithra_1-1718170788871.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31282iA58F0AC3DAA17B0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavithra_1-1718170788871.png" alt="pavithra_1-1718170788871.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;here i am trying to add one more coulmn called incident&amp;nbsp;&lt;BR /&gt;To extract the incident details with respect to certificate values&lt;BR /&gt;If inc is available , then it should display numbers, orelse null&lt;BR /&gt;To extract the INC, using the below query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=acn_ac_snow_ticket_idx code_message=create uid="*Saml : Days to expire*" OR uid="*Self_Signed : Days to expire*" OR uid="*CA : Days to expire*" OR uid="*Entrust : Days to expire*"
| rex field=_raw "\"(?&amp;lt;INC&amp;gt;INC\d+),"
| rex field=uid "(?i)^(?P&amp;lt;source_host&amp;gt;.+?)__"
| table INC uid log_description source_host
| dedup INC uid log_description source_host
| rename INC as "Ticket_Number"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavithra_2-1718170982436.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31283i965FDD6042A30C2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavithra_2-1718170982436.png" alt="pavithra_2-1718170982436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 09:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/join/m-p/690424#M56574</guid>
      <dc:creator>pavithra</dc:creator>
      <dc:date>2024-06-12T09:19:35Z</dc:date>
    </item>
  </channel>
</rss>

