<?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 search user check in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572564#M199554</link>
    <description>&lt;P&gt;It is necessary to check if the user is in the index in this file or not. If not, then add to the file, if it is in the file, then nothing happens&lt;/P&gt;&lt;P&gt;file.csv&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;username&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;john&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;abcd&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qwer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index = IndexName&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;username&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Aram&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;ghjk&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qweiq&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition, if the user is not found in the file, then write it to the file&amp;nbsp;&lt;/P&gt;&lt;P&gt;output&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;username&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;info1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;info2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;john&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;abcd&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qwer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Aram&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;ghjk&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qweiq&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Wed, 27 Oct 2021 01:07:40 GMT</pubDate>
    <dc:creator>gitingua</dc:creator>
    <dc:date>2021-10-27T01:07:40Z</dc:date>
    <item>
      <title>search user check</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572564#M199554</link>
      <description>&lt;P&gt;It is necessary to check if the user is in the index in this file or not. If not, then add to the file, if it is in the file, then nothing happens&lt;/P&gt;&lt;P&gt;file.csv&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;username&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;john&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;abcd&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qwer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index = IndexName&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;username&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;info2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Aram&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;ghjk&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qweiq&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition, if the user is not found in the file, then write it to the file&amp;nbsp;&lt;/P&gt;&lt;P&gt;output&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;username&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;info1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;info2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;john&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;abcd&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qwer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Aram&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;ghjk&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;qweiq&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 27 Oct 2021 01:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572564#M199554</guid>
      <dc:creator>gitingua</dc:creator>
      <dc:date>2021-10-27T01:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: search user check</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572601#M199573</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=IndexName
| table username info1 info2
| append [| inputlookup file.csv]
| dedup username
| outputlookup file.csv append=f&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Oct 2021 08:37:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572601#M199573</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-27T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: search user check</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572616#M199580</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can it be done through "where"?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 09:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572616#M199580</guid>
      <dc:creator>gitingua</dc:creator>
      <dc:date>2021-10-27T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: search user check</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572618#M199581</link>
      <description>&lt;P&gt;Can what be done through where?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 10:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572618#M199581</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-27T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: search user check</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572622#M199584</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a check where two parameters are compared via "where"&lt;/P&gt;&lt;P&gt;example | where id != id_old&lt;/P&gt;&lt;P&gt;there are already users with ID in the file, and after verification new IDs are added. But it happens that a new user appears in the index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it turns out if "| where&amp;nbsp;id != id_old" it does not pass. &amp;nbsp;And I need to add a condition,if the check did not work "| where&amp;nbsp;id != id_old", then check whether such a user exists at all in the file&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 10:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572622#M199584</guid>
      <dc:creator>gitingua</dc:creator>
      <dc:date>2021-10-27T10:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: search user check</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572627#M199588</link>
      <description>&lt;P&gt;example&amp;nbsp;&lt;BR /&gt;| where id != id_old or not match(username)&lt;/P&gt;&lt;P&gt;is it possible to write something similar&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 11:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-user-check/m-p/572627#M199588</guid>
      <dc:creator>gitingua</dc:creator>
      <dc:date>2021-10-27T11:31:55Z</dc:date>
    </item>
  </channel>
</rss>

