<?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: Multi-value Field Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91665#M182327</link>
    <description>&lt;P&gt;Hi linu1988, I'm not planning on running the Linux, this search is meant to look through collections of Unix logs. My problem is that I'm trying to look at a multivalve field from that search and figure out if any of those values are the input of a lookup table I have. For example, the log could have a field like: cp, mv, rm，and I'm looking to see if rm (or some other commands are in there).. I'm hesitant to do a huge regex, but think it may be my only option.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2013 11:52:47 GMT</pubDate>
    <dc:creator>mhenrick</dc:creator>
    <dc:date>2013-07-11T11:52:47Z</dc:date>
    <item>
      <title>Multi-value Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91663#M182325</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;Right now I'm trying to set up a Splunk query to look for a series of Unix commands within either a multi-valued field (with all the commands) or a string that includes the command line. My only problem is that I'm unsure how to do the matching and I was planning on using a lookup table to hold all of the commands that I'm looking for. I've been leaning towards doing a regex implementation, but it just seems sloppy. Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 04:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91663#M182325</guid>
      <dc:creator>mhenrick</dc:creator>
      <dc:date>2013-07-11T04:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-value Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91664#M182326</link>
      <description>&lt;P&gt;How do you plan to execute unix command? Are the data indexed? If yes then the source=* will give you all the commands' result. then see how it can be done. Correct me if i am wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 05:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91664#M182326</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-11T05:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-value Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91665#M182327</link>
      <description>&lt;P&gt;Hi linu1988, I'm not planning on running the Linux, this search is meant to look through collections of Unix logs. My problem is that I'm trying to look at a multivalve field from that search and figure out if any of those values are the input of a lookup table I have. For example, the log could have a field like: cp, mv, rm，and I'm looking to see if rm (or some other commands are in there).. I'm hesitant to do a huge regex, but think it may be my only option.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 11:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91665#M182327</guid>
      <dc:creator>mhenrick</dc:creator>
      <dc:date>2013-07-11T11:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-value Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91666#M182328</link>
      <description>&lt;P&gt;Ahh i get it, So lookup is the best option/ a csv containing the commands. Just use a subsearch and get the result.&lt;/P&gt;

&lt;P&gt;e.g.&lt;BR /&gt;
Index=blah sourcetype=blah [|inputcsv command.csv]| table _raw&lt;/P&gt;

&lt;P&gt;note:make sure any single column should be present to match&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 12:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91666#M182328</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-11T12:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-value Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91667#M182329</link>
      <description>&lt;P&gt;Hi Linu1988, I'm not too versed in sub-searches. How would the loaded csv be compared to a multi-valued field?&lt;BR /&gt;
For example, if I set the cvs up like this (don't worry about the values, I had a user-defined mapping originally)&lt;BR /&gt;
CSV: fields are on top&lt;BR /&gt;
|command|val..|val..|&lt;BR /&gt;
|su     |12321|12312|&lt;BR /&gt;
|rm     |12313|12312|&lt;BR /&gt;
|mv     |32134|12352|&lt;/P&gt;

&lt;P&gt;and I'm trying to check if an excel field that has values like below is in there (all one cell, it's multi-valued):&lt;BR /&gt;
| mv  |&lt;BR /&gt;
| cp  |&lt;BR /&gt;
| ls  |&lt;/P&gt;

&lt;P&gt;Thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 15:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91667#M182329</guid>
      <dc:creator>mhenrick</dc:creator>
      <dc:date>2013-07-11T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-value Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91668#M182330</link>
      <description>&lt;P&gt;evenif it's multi valued the field contains the keyword. I haven't tested as i don't have relevant data. Try it out, see if it's not working, use the multikv command to separate the mv fields, make it single valued field.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 15:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-value-Field-Help/m-p/91668#M182330</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-11T15:28:45Z</dc:date>
    </item>
  </channel>
</rss>

