<?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 Error in 'fields' command: Invalid argument: 'Account_Name=HELP' in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406649#M117499</link>
    <description>&lt;P&gt;How to correct this SPL to avoid this error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=win EventCode=528 OR EventCode=4624 LogonType=2 
| fields Account_Name
[ | inputlookup identities_1
 | inputlookup append=true identities_2
 | inputlookup append=true identities_3
|  rename identity as Account_Name
|  fields Account_Name watchlist
|  where watchlist = "true"    
]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Error in 'fields' command: Invalid argument: 'Account_Name=HELP'&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2019 16:35:02 GMT</pubDate>
    <dc:creator>splunk_zen</dc:creator>
    <dc:date>2019-04-12T16:35:02Z</dc:date>
    <item>
      <title>Error in 'fields' command: Invalid argument: 'Account_Name=HELP'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406649#M117499</link>
      <description>&lt;P&gt;How to correct this SPL to avoid this error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=win EventCode=528 OR EventCode=4624 LogonType=2 
| fields Account_Name
[ | inputlookup identities_1
 | inputlookup append=true identities_2
 | inputlookup append=true identities_3
|  rename identity as Account_Name
|  fields Account_Name watchlist
|  where watchlist = "true"    
]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Error in 'fields' command: Invalid argument: 'Account_Name=HELP'&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406649#M117499</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2019-04-12T16:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'fields' command: Invalid argument: 'Account_Name=HELP'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406650#M117500</link>
      <description>&lt;P&gt;Try this-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=win EventCode=528 OR EventCode=4624 LogonType=2 
 | fields Account_Name
 [ | inputlookup identities_1
  | inputlookup append=true identities_2
  | inputlookup append=true identities_3
 |  rename identity as Account_Name
 |  fields Account_Name watchlist
 |  where watchlist = "true" | return $Account_Name   
 ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406650#M117500</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-04-12T16:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'fields' command: Invalid argument: 'Account_Name=HELP'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406651#M117501</link>
      <description>&lt;P&gt;Unfortunately it doesn't work.&lt;BR /&gt;
Adding $Account_Name yields 0 results&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 14:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406651#M117501</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2019-04-17T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'fields' command: Invalid argument: 'Account_Name=HELP'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406652#M117502</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1854"&gt;@splunk_zen&lt;/a&gt;, you can try the following, however, I would want to know as to why you have three lookups identities_1, identities_2 and identities_3. I have moved watchlist filter to inputlookup command itself assuming all three lookups have this field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=win EventCode=528 OR EventCode=4624 LogonType=2 
    [| inputlookup identities_1 where watchlist = "true" 
    | inputlookup append=true identities_2 where watchlist = "true" 
    | inputlookup append=true identities_3 where watchlist = "true" 
    | rename identity as Account_Name 
    | table Account_Name]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406652#M117502</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-30T00:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in 'fields' command: Invalid argument: 'Account_Name=HELP'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406653#M117503</link>
      <description>&lt;P&gt;Issue was really on the dumb first &lt;BR /&gt;
| fields argument&lt;/P&gt;

&lt;P&gt;different lookups are non relevant to this but required as we're using the ldapsearch command to fetch ldapoutputs from several domains&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 11:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Error-in-fields-command-Invalid-argument-Account-Name-HELP/m-p/406653#M117503</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2019-04-19T11:31:13Z</dc:date>
    </item>
  </channel>
</rss>

