<?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: can I give a description to an extracted field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409602#M190945</link>
    <description>&lt;P&gt;Greetings Riley,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Settings &amp;gt; Lookups &amp;gt; "Add New" next to "Lookup table files"&lt;/LI&gt;
&lt;LI&gt;Create a CSV similar to the one below. Upload it with name "GUIDs.csv"&lt;/LI&gt;
&lt;LI&gt;Run the search below in the same app that the csv was uploaded in.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;GUIDs.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GUID,Description
 1,Location 1
 2,Location 2
 3,Location 3
 4,Location 4
 5,Location 5
 6,Location 6
 7,Location 7
 8,Location 8
 9,Location 9
 10,Location 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=10
| eval   GUID=random()%10
| lookup GUIDs.csv GUID as GUID
| search Description IN ("Location 1", "Location 2", "Location 3")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If anyone in the future finds this post useful, please refer to this link &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 19:33:50 GMT</pubDate>
    <dc:creator>jacobpevans</dc:creator>
    <dc:date>2019-07-29T19:33:50Z</dc:date>
    <item>
      <title>can I give a description to an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409601#M190944</link>
      <description>&lt;P&gt;I have a GUID field in my logs, and the guid is unique for a specific location. I wanted to query for all events that happen at a specific location so I have to look up the guid value for the location and then search for the guid. Is it possible to use the friendly name for the location to search by instead?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409601#M190944</guid>
      <dc:creator>rileyken</dc:creator>
      <dc:date>2019-07-29T19:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: can I give a description to an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409602#M190945</link>
      <description>&lt;P&gt;Greetings Riley,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Settings &amp;gt; Lookups &amp;gt; "Add New" next to "Lookup table files"&lt;/LI&gt;
&lt;LI&gt;Create a CSV similar to the one below. Upload it with name "GUIDs.csv"&lt;/LI&gt;
&lt;LI&gt;Run the search below in the same app that the csv was uploaded in.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;GUIDs.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GUID,Description
 1,Location 1
 2,Location 2
 3,Location 3
 4,Location 4
 5,Location 5
 6,Location 6
 7,Location 7
 8,Location 8
 9,Location 9
 10,Location 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=10
| eval   GUID=random()%10
| lookup GUIDs.csv GUID as GUID
| search Description IN ("Location 1", "Location 2", "Location 3")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If anyone in the future finds this post useful, please refer to this link &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409602#M190945</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-07-29T19:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: can I give a description to an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409603#M190946</link>
      <description>&lt;P&gt;Thanks, worked like a champ!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409603#M190946</guid>
      <dc:creator>rileyken</dc:creator>
      <dc:date>2019-07-30T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: can I give a description to an extracted field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409604#M190947</link>
      <description>&lt;P&gt;You're welcome!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-I-give-a-description-to-an-extracted-field/m-p/409604#M190947</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-07-30T13:08:09Z</dc:date>
    </item>
  </channel>
</rss>

