<?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: Fields as variables in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543435#M37267</link>
    <description>&lt;P&gt;The question is not about the &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command, but the answer is.&amp;nbsp; The existing query will not treat anything on the right side of = as a field ("variable").&amp;nbsp; Use the variable in a &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command and it should work.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 18:11:33 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-03-11T18:11:33Z</dc:date>
    <item>
      <title>Fields as variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543353#M37248</link>
      <description>&lt;P&gt;I have a question, in microservice based platform where are getting several logs for the different application. Each application tracks unique transactions via a id, either a CorrelationId, SessionId, transactionid&lt;/P&gt;&lt;P&gt;I want to be able to put this is a lookup application.csv file and use it for same dashboard&lt;/P&gt;&lt;P&gt;so my lookup will look like&lt;/P&gt;&lt;P&gt;Application SourceLogs Unique_Identifier&lt;BR /&gt;App1 Application1.logs CorrelationId&lt;BR /&gt;App2 Application2.logs SessionId&lt;BR /&gt;App3 Application3.logs TransactionId&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have created a input where the user can select the Application via tkn_app&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;index=application_logs&lt;BR /&gt;| lookup application.csv SourceLogs as source | search Application=$tkn_app$&lt;BR /&gt;| bin span=5m _time&lt;BR /&gt;| stats dc(Unique_Identifier) AS TPS by _time&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;however this searches for Correlationid , SessionId and TransactionId and not the actual values, how to I make it so Unique_Identfier searches for the right metadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the logs are in json format, so the fields&amp;nbsp;Correlationid , SessionId and TransactionId are autodetected by Splunk&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 13:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543353#M37248</guid>
      <dc:creator>ARaman77</dc:creator>
      <dc:date>2021-03-11T13:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fields as variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543380#M37258</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command does not support field names on the right of the = - it assumes the right side is a string.&lt;/P&gt;&lt;P&gt;Try using &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt;, instead.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 14:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543380#M37258</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-11T14:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fields as variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543421#M37265</link>
      <description>&lt;P&gt;My question is not on the search string, my question is how to use field like CorrelationID, SessionID or TransactionID as a variable&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543421#M37265</guid>
      <dc:creator>ARaman77</dc:creator>
      <dc:date>2021-03-11T16:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fields as variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543435#M37267</link>
      <description>&lt;P&gt;The question is not about the &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command, but the answer is.&amp;nbsp; The existing query will not treat anything on the right side of = as a field ("variable").&amp;nbsp; Use the variable in a &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command and it should work.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 18:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543435#M37267</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-11T18:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fields as variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543510#M37274</link>
      <description>&lt;P&gt;I did use the where clause and it dint work&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 09:35:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Fields-as-variables/m-p/543510#M37274</guid>
      <dc:creator>ARaman77</dc:creator>
      <dc:date>2021-03-12T09:35:35Z</dc:date>
    </item>
  </channel>
</rss>

