<?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 inputcsv match anywhere in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputcsv-match-anywhere/m-p/26574#M96655</link>
    <description>&lt;P&gt;I have a list of usernames in a CSV file. I want to find any events that contain any of these usernames in _raw. I cannot guarantee that there is a field called user or affected_user for every event, so I want to match anywhere in the string. If I try the following, it only matches for the first user:&lt;/P&gt;

&lt;P&gt;.. [ inputcsv userlist.csv |return $user ]&lt;/P&gt;

&lt;P&gt;but this only matches on the first user in the list.&lt;/P&gt;

&lt;P&gt;Does anyone know how I can match any of the users (words) in a list?&lt;/P&gt;

&lt;P&gt;This should be the same whether I am using inputcsv or inputlookup.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:51:04 GMT</pubDate>
    <dc:creator>reed_kelly</dc:creator>
    <dc:date>2020-09-28T13:51:04Z</dc:date>
    <item>
      <title>inputcsv match anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputcsv-match-anywhere/m-p/26574#M96655</link>
      <description>&lt;P&gt;I have a list of usernames in a CSV file. I want to find any events that contain any of these usernames in _raw. I cannot guarantee that there is a field called user or affected_user for every event, so I want to match anywhere in the string. If I try the following, it only matches for the first user:&lt;/P&gt;

&lt;P&gt;.. [ inputcsv userlist.csv |return $user ]&lt;/P&gt;

&lt;P&gt;but this only matches on the first user in the list.&lt;/P&gt;

&lt;P&gt;Does anyone know how I can match any of the users (words) in a list?&lt;/P&gt;

&lt;P&gt;This should be the same whether I am using inputcsv or inputlookup.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputcsv-match-anywhere/m-p/26574#M96655</guid>
      <dc:creator>reed_kelly</dc:creator>
      <dc:date>2020-09-28T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: inputcsv match anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputcsv-match-anywhere/m-p/26575#M96656</link>
      <description>&lt;P&gt;Running 4.3.1 search head...&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 15:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputcsv-match-anywhere/m-p/26575#M96656</guid>
      <dc:creator>reed_kelly</dc:creator>
      <dc:date>2013-05-07T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: inputcsv match anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputcsv-match-anywhere/m-p/26576#M96657</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... [inputcsv userlist.csv | rename user as query | fields query]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"query" (or "search" if you prefer, has same effect) is a special field name that makes Splunk omit the 'field=value' formatting when returning from a subsearch.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 15:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputcsv-match-anywhere/m-p/26576#M96657</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-07T15:05:09Z</dc:date>
    </item>
  </channel>
</rss>

