<?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 give each field Additional Information and use this in a search query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88670#M22703</link>
    <description>&lt;P&gt;There are multiple options, and what suits you depends entirely on what specifically you're trying to do. Could you explain your scenario more in detail?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2013 08:51:53 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-01-16T08:51:53Z</dc:date>
    <item>
      <title>How to give each field Additional Information and use this in a search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88669#M22702</link>
      <description>&lt;P&gt;I have a bunch of fields, let's say Field A, Field B, Field C.&lt;/P&gt;

&lt;P&gt;I want to give each field a certain value.&lt;BR /&gt;
For example, Field A has value of 2&lt;BR /&gt;
Field B has value of 1&lt;BR /&gt;
Field C has value of 2&lt;/P&gt;

&lt;P&gt;How should I give Splunk this information?&lt;BR /&gt;
Should it be in a separate lookup table or just in an addional row in my CSV file?&lt;/P&gt;

&lt;P&gt;If so, how can I search and only show fields with a certain value&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 00:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88669#M22702</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-01-16T00:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to give each field Additional Information and use this in a search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88670#M22703</link>
      <description>&lt;P&gt;There are multiple options, and what suits you depends entirely on what specifically you're trying to do. Could you explain your scenario more in detail?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 08:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88670#M22703</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-16T08:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to give each field Additional Information and use this in a search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88671#M22704</link>
      <description>&lt;P&gt;I'm going to take a punt and say you're after an automatic lookup, what you mean by "an additional row in my CSV file?" is a bit beyond us as you haven't mentioned an existing CSV file &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;In this case I would put it into a lookup such as;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;values.csv  
    Field, Value
    A,2
    B,1
    C,2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would then create an automatic lookup in my props.conf for that sourcetype;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MYAMAZINGSOURCETYPE]
LOOKUP-values = valuescsv Field OUTPUT Value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf I would define the lookup...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[valuescsv]
filename = values.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Finally, you need to take into consideration how the Field value is extracted, presumably this is already handled in your instance but you need to make sure that is extracted BEFORE the automatic lookup.&lt;/P&gt;

&lt;P&gt;Otherwise, you can now run a search on that sourcetype for a Value=2 to only see those values.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 09:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88671#M22704</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2013-01-16T09:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to give each field Additional Information and use this in a search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88672#M22705</link>
      <description>&lt;P&gt;I have many Fields&lt;/P&gt;

&lt;P&gt;Field A, FieldB, Field C, Field D&lt;BR /&gt;
They each have a weight associated with them.&lt;BR /&gt;
FieldA : 0&lt;BR /&gt;
FieldB : 1&lt;BR /&gt;
FieldC : 0&lt;BR /&gt;
FieldD : 1&lt;/P&gt;

&lt;P&gt;I tried using a lookup table to associate the field with a weight but I cannot seem to be able to do so.&lt;/P&gt;

&lt;P&gt;I would like to do queries like:&lt;BR /&gt;
Just show the fields in the table with weight of 0.&lt;BR /&gt;
Then only Field A and Field C would show.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2013 19:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-each-field-Additional-Information-and-use-this-in-a/m-p/88672#M22705</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-01-17T19:07:26Z</dc:date>
    </item>
  </channel>
</rss>

