<?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 to avoid repeating the formula? in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/576973#M1293</link>
    <description>&lt;P&gt;I'd want to try it to be certain, but it sounds like it could be a job for a lookup... with WILDCARD match type defined for some columns:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Can-we-use-wildcard-characters-in-a-lookup-table/m-p/94513#" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Can-we-use-wildcard-characters-in-a-lookup-table/m-p/94513#&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 04:59:21 GMT</pubDate>
    <dc:creator>acharlieh</dc:creator>
    <dc:date>2021-12-02T04:59:21Z</dc:date>
    <item>
      <title>How to avoid repeating the formula?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/576967#M1291</link>
      <description>&lt;P&gt;On various occasions I find myself writing formulas like (simplified version):&lt;/P&gt;&lt;PRE&gt;eval cat=case(like(CC, "TenantA%"), "ABC", like(CC, "TenantB%"), "BBC", true(), "Enterprise") &lt;/PRE&gt;&lt;P&gt;Or mapping the hosts to regions&lt;/P&gt;&lt;PRE&gt;eval site=case(like(host, "%-au%"), "AWS US", like(host, "%-ac%"), "AWS CA", like(host, "%-ae%"), "AWS EU", true(), "UnKnown")&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Sometime I use the same mappings across many reports dashboards.&lt;/P&gt;&lt;P&gt;Copy/paste does not cut it. Also sometimes they need to get updated. Any suggestion?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 01:27:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/576967#M1291</guid>
      <dc:creator>hedayaty</dc:creator>
      <dc:date>2021-12-02T01:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid repeating the formula?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/576972#M1292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241164"&gt;@hedayaty&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Search macros will help you;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.3/Knowledge/Searchmacroexamples" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.3/Knowledge/Searchmacroexamples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 04:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/576972#M1292</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-12-02T04:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid repeating the formula?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/576973#M1293</link>
      <description>&lt;P&gt;I'd want to try it to be certain, but it sounds like it could be a job for a lookup... with WILDCARD match type defined for some columns:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Can-we-use-wildcard-characters-in-a-lookup-table/m-p/94513#" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Can-we-use-wildcard-characters-in-a-lookup-table/m-p/94513#&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 04:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/576973#M1293</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2021-12-02T04:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid repeating the formula?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/577116#M1294</link>
      <description>&lt;P&gt;Did not know about the search macros.&lt;/P&gt;&lt;P&gt;They are very clunky but they do the job!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 18:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-to-avoid-repeating-the-formula/m-p/577116#M1294</guid>
      <dc:creator>hedayaty</dc:creator>
      <dc:date>2021-12-02T18:27:50Z</dc:date>
    </item>
  </channel>
</rss>

