<?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: Anybody knows about {@fieldname} in a join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Anybody-knows-about-fieldname-in-a-join/m-p/661137#M228260</link>
    <description>&lt;P&gt;Hi guiseppe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should have been clearer, yes it is a perfectly valid search - except for the many joins, that I also will rewrite with stats.&lt;/P&gt;&lt;P&gt;Yes - now I see it, it is a message template thatis part of the logging, so the {@fieldname} is just part of the normal search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 06:37:42 GMT</pubDate>
    <dc:creator>las</dc:creator>
    <dc:date>2023-10-18T06:37:42Z</dc:date>
    <item>
      <title>Anybody knows about {@fieldname} in a join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Anybody-knows-about-fieldname-in-a-join/m-p/661134#M228258</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been given a search, that I need some help decifering.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=atp-aes-prod sourcetype=atp_aes_json SourceContext=RevisionLogger Properties.Url="/api/Document/get-merged-pdf" Properties.IsImpersonated=false | join type=inner CorrelationId [search index=atp-aes-prod SourceContext=ANS.Platform.Application.Commands.Queries.Selfservice.GenerateMergedPdf.GenerateMergedPdfHandler MessageTemplate="User tries to merge*"] | join type=inner CorrelationId [search index=atp-aes-prod SourceContext=ANS.Platform.Integrations.GetOrganized.GoDocumentsService MessageTemplate="Start CombineToPdf method*"] | join type=inner CorrelationId [search index=atp-aes-prod SourceContext=ANS.Platform.Domain.Services.Selfservice.Authorization.SelfServiceAuthorizationService MessageTemplate="SelfServiceAuthorizationService took {@elapsedMilliseconds} ms to be constructed for part {@partId}."] | table Properties.Url, Timestamp, Properties.CompanyName, Properties.partId, Properties.documents&lt;/LI-CODE&gt;&lt;P&gt;It does not run on our system and never will, I think it was developed by somebody versed in relational databases. I'm trying to rewrite this search, but I'm slightly baffled by the&amp;nbsp;{@elapsedMilliseconds} and&amp;nbsp;{@partId}.&lt;/P&gt;&lt;P&gt;Does anybody know what they are doing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;las&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Anybody-knows-about-fieldname-in-a-join/m-p/661134#M228258</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2023-10-18T06:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody knows about {@fieldname} in a join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Anybody-knows-about-fieldname-in-a-join/m-p/661135#M228259</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/36534"&gt;@las&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't know why your search doesn't run, but surely it's a very slow search, having many join command inside it (Splunk isn't a DB and join command can be used only when there isn't any other solution and with few events!).&lt;/P&gt;&lt;P&gt;Try to use a different approach using stats:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=atp-aes-prod (sourcetype=atp_aes_json SourceContext=RevisionLogger Properties.Url="/api/Document/get-merged-pdf" Properties.IsImpersonated=false) OR (SourceContext=ANS.Platform.Application.Commands.Queries.Selfservice.GenerateMergedPdf.GenerateMergedPdfHandler MessageTemplate="User tries to merge*") OR (SourceContext=ANS.Platform.Integrations.GetOrganized.GoDocumentsService MessageTemplate="Start CombineToPdf method*") OR (SourceContext=ANS.Platform.Domain.Services.Selfservice.Authorization.SelfServiceAuthorizationService MessageTemplate="SelfServiceAuthorizationService took {@elapsedMilliseconds} ms to be constructed for part {@partId}.")
| stats 
   values(Properties.Url) AS Url
   values(Timestamp) AS Timestamp
   values(Properties.CompanyName) AS CompanyName
   values(Properties.partId) AS partId
   values(Properties.documents) AS documents
   BY CorrelationId &lt;/LI-CODE&gt;&lt;P&gt;Sometimes there also an issue (and probably this is the problem of your original search, using fields with the dot inside, in this case use rename or quotes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=atp-aes-prod (sourcetype=atp_aes_json SourceContext=RevisionLogger Properties.Url="/api/Document/get-merged-pdf" Properties.IsImpersonated=false) OR (SourceContext=ANS.Platform.Application.Commands.Queries.Selfservice.GenerateMergedPdf.GenerateMergedPdfHandler MessageTemplate="User tries to merge*") OR (SourceContext=ANS.Platform.Integrations.GetOrganized.GoDocumentsService MessageTemplate="Start CombineToPdf method*") OR (SourceContext=ANS.Platform.Domain.Services.Selfservice.Authorization.SelfServiceAuthorizationService MessageTemplate="SelfServiceAuthorizationService took {@elapsedMilliseconds} ms to be constructed for part {@partId}.")
| rename
   Properties.Url AS Url
   Properties.CompanyName AS CompanyName
   Properties.partId AS partId
   Properties.documents AS documents
| stats 
   values(Url) AS Url
   values(Timestamp) AS Timestamp
   values(CompanyName) AS CompanyName
   values(partId) AS partId
   values(documents) AS documents
   BY CorrelationId &lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Anybody-knows-about-fieldname-in-a-join/m-p/661135#M228259</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-10-18T06:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody knows about {@fieldname} in a join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Anybody-knows-about-fieldname-in-a-join/m-p/661137#M228260</link>
      <description>&lt;P&gt;Hi guiseppe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should have been clearer, yes it is a perfectly valid search - except for the many joins, that I also will rewrite with stats.&lt;/P&gt;&lt;P&gt;Yes - now I see it, it is a message template thatis part of the logging, so the {@fieldname} is just part of the normal search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Anybody-knows-about-fieldname-in-a-join/m-p/661137#M228260</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2023-10-18T06:37:42Z</dc:date>
    </item>
  </channel>
</rss>

