<?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: Retrieve service depandancy with splunk entreprise in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/692007#M235577</link>
    <description>&lt;P&gt;It looks like you are trying to find the app.name for the parent_span_id? To avoid using joins, try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=your_sourcetype
| fields trace_id, span_id, parent_span_id,app.name
| rename app.name as current_service
| eval join_id=parent_span_id
| appendpipe
    [| rename current_service as parent_service
    | eval join_id = span_id]
| eventstats values(parent_service) as parent_service by join_id trace_id
| where isnotnull(current_service)
| table trace_id parent_service current_service&lt;/LI-CODE&gt;&lt;P&gt;If this isn't correct, please share some anonymised, but representative raw events and a description of what it is you are trying to do&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jun 2024 09:20:00 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-06-30T09:20:00Z</dc:date>
    <item>
      <title>Retrieve service depandancy with splunk entreprise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691692#M235568</link>
      <description>&lt;P&gt;hello i'm beginner in splunk. Currently, i'm working with splunk entreprise i want to retrieve microservices depandancy and export this informations&amp;nbsp; How can i do that?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 14:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691692#M235568</guid>
      <dc:creator>Oum</dc:creator>
      <dc:date>2024-06-26T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve service depandancy with splunk entreprise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691699#M235569</link>
      <description>&lt;P&gt;Start by creating a search which retrieves the information you are trying to find. How far have you got with that?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 15:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691699#M235569</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-26T15:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve service depandancy with splunk entreprise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691937#M235570</link>
      <description>&lt;P&gt;yes i'm started doing a search based on the traceId and spanId&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;index=your_index sourcetype=your_sourcetype&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| fields trace_id, span_id, parent_span_id,app.name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| rename app.name as current_service&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| join type=inner trace_id [search index=your_index sourcetype=your_sourcetype | fields trace_id, span_id, parent_span_id,app.name | rename app.name as parent_service, span_id as parent_span_id]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| where parent_span_id = span_id&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| table trace_id, parent_service, current_service&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but i'm asking if there is a default fields related to microservices in Splunk&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jun 2024 13:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691937#M235570</guid>
      <dc:creator>Oum</dc:creator>
      <dc:date>2024-06-28T13:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve service depandancy with splunk entreprise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691974#M235571</link>
      <description>&lt;P&gt;1. Post your searches in code block or preformatted paragraph - it helps readability.&lt;/P&gt;&lt;P&gt;2. Don't use the &lt;EM&gt;join&lt;/EM&gt; command if you can avoid it (in this case you can probably go with &lt;EM&gt;stats&lt;/EM&gt; instead)&lt;/P&gt;&lt;P&gt;3. Fields depend on the data you onboard. The only "default" thing about them is when you have them normalized to be CIM-compliant. But I don't see any datamodel applicable here.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 22:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691974#M235571</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-06-28T22:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve service depandancy with splunk entreprise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691986#M235572</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but i'm asking if there is a default fields related to microservices in Splunk&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I understand that it is tempting to view Splunk as a unique data source. &amp;nbsp;But in reality, Splunk data is what you collect in your business. &amp;nbsp;Volunteers here has zero visibility of what fields are available in your_sourcetype that may or may not be related to microservices.&lt;/P&gt;&lt;P&gt;In simple terms, no. &amp;nbsp;There is no such a thing as default fields related to anything other than time. &amp;nbsp;host, source, and sourcetype are usually mandatory in most deployments. &amp;nbsp;You need to ask whoever is writing logs in your_sourcetype how to identify a microservice. &amp;nbsp;They may have already put such in a key-value pair using either a delimiter or using a structured format such as JSON. &amp;nbsp;Even if they haven't, Splunk can easily extract it as long as it is present in the data. &amp;nbsp;However, Splunk itself cannot tell you where your developers placed such information.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;suggested, you can also show some raw events (anonymize as needed) for volunteers to inspect and speculate. &amp;nbsp;Still, the best is if you can also ask your developers to identify information themselves.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 22:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/691986#M235572</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-06-28T22:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve service depandancy with splunk entreprise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/692007#M235577</link>
      <description>&lt;P&gt;It looks like you are trying to find the app.name for the parent_span_id? To avoid using joins, try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=your_sourcetype
| fields trace_id, span_id, parent_span_id,app.name
| rename app.name as current_service
| eval join_id=parent_span_id
| appendpipe
    [| rename current_service as parent_service
    | eval join_id = span_id]
| eventstats values(parent_service) as parent_service by join_id trace_id
| where isnotnull(current_service)
| table trace_id parent_service current_service&lt;/LI-CODE&gt;&lt;P&gt;If this isn't correct, please share some anonymised, but representative raw events and a description of what it is you are trying to do&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 09:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-service-depandancy-with-splunk-entreprise/m-p/692007#M235577</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-30T09:20:00Z</dc:date>
    </item>
  </channel>
</rss>

