<?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 can I expand a macro definition in the search field? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114836#M1179</link>
    <description>&lt;P&gt;There is now an &lt;A href="https://answers.splunk.com/answers/471235/how-to-expand-macros-in-a-splunk-search.html"&gt;answer&lt;/A&gt; for this.  From that post:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;New in 6.6, there is now a keystroke to expand macros in the search window! Click inside your search and press cmd-shift-E (on Mac, should be shift-WIN-E on Windows) and you'll see a window like this:
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 02 Feb 2018 03:55:21 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-02-02T03:55:21Z</dc:date>
    <item>
      <title>How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114832#M1175</link>
      <description>&lt;P&gt;Sometimes Splunk will just do this, like when you try to add an additional term from the Events tab, but what if I wanted to do it on demand?&lt;/P&gt;

&lt;P&gt;Is there a way to tell Splunk to expand a macro to its fully exploded form?&lt;/P&gt;

&lt;P&gt;This would make editing and debugging macros much more fluid. I would be surprised if something like this &lt;EM&gt;wasn't&lt;/EM&gt; implemented, but I have scoured the docs and come up empty. Any tips?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2014 22:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114832#M1175</guid>
      <dc:creator>neiljpeterson</dc:creator>
      <dc:date>2014-11-07T22:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114833#M1176</link>
      <description>&lt;P&gt;I had this situation where I needed to check what macro definition the search was using. &lt;BR /&gt;
For that I used the "eventSearch" field from the Inspect Job page. I was able to see the fully expanded search. &lt;BR /&gt;
But what you are looking for seems different. You need a command to expand the macro? Interesting ! Lets see if someone answers&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2015 06:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114833#M1176</guid>
      <dc:creator>immortalraghava</dc:creator>
      <dc:date>2015-04-02T06:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114834#M1177</link>
      <description>&lt;P&gt;There is a REST call that can do macro expansion:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ curl -k &lt;A href="https://localhost:8089/servicesNS/admin/search/search/intentionsparser" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/intentionsparser&lt;/A&gt; -u admin -d "q=search index=_internal `sin(90)`" -d "action=addterm" -d "value="
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;dict&amp;gt;
    &amp;lt;key name="fullSearch"&amp;gt;| search index=_internal (90 - pow(90, 3)/6 + pow(90, 5)/120 - pow(90, 7)/5040 + pow(90, 9)/362880 - pow(90, 11)/39916800 + pow(90, 13)/6227020800)&amp;lt;/key&amp;gt;
    &amp;lt;key name="eventsSearch"&amp;gt;search index=_internal (90 - pow(90, 3)/6 + pow(90, 5)/120 - pow(90, 7)/5040 + pow(90, 9)/362880 - pow(90, 11)/39916800 + pow(90, 13)/6227020800)&amp;lt;/key&amp;gt;
    &amp;lt;key name="reportsSearch"&amp;gt;&amp;lt;/key&amp;gt;
    &amp;lt;key name="canSummarize"&amp;gt;0&amp;lt;/key&amp;gt;
  &amp;lt;/dict&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The challenge would be to include that in the UI &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 13:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114834#M1177</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-02-16T13:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114835#M1178</link>
      <description>&lt;P&gt;This appears to be an undocumented trick, it works outside Splunk (for example a curl call) but not via a | rest call in the search interface.&lt;/P&gt;

&lt;P&gt;Do you happen to have a trick that works within the search interface? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 01:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114835#M1178</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-02-02T01:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114836#M1179</link>
      <description>&lt;P&gt;There is now an &lt;A href="https://answers.splunk.com/answers/471235/how-to-expand-macros-in-a-splunk-search.html"&gt;answer&lt;/A&gt; for this.  From that post:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;New in 6.6, there is now a keystroke to expand macros in the search window! Click inside your search and press cmd-shift-E (on Mac, should be shift-WIN-E on Windows) and you'll see a window like this:
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 03:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114836#M1179</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-02T03:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114837#M1180</link>
      <description>&lt;P&gt;FYI I had a minor use case where I wanted to expand macros non-interactively so that's why I cannot use the CTRL-SHIFT-E trick here...(even though I have Splunk 7 installed)&lt;BR /&gt;
If there is an answer that's great, but it's not that important&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 04:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114837#M1180</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-02-02T04:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114838#M1181</link>
      <description>&lt;P&gt;Just an update it is control+shift+E in windows&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 21:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114838#M1181</guid>
      <dc:creator>yahuja_splunk</dc:creator>
      <dc:date>2018-03-22T21:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I expand a macro definition in the search field?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114839#M1182</link>
      <description>&lt;P&gt;Sure would be nice if this was discoverable!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 23:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-expand-a-macro-definition-in-the-search-field/m-p/114839#M1182</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2018-10-22T23:20:03Z</dc:date>
    </item>
  </channel>
</rss>

