<?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 Fields Search Issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182188#M52546</link>
    <description>&lt;P&gt;what does the syntax look like so I can pull Multiple fields from a subsearch to an outer search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=security "An account was successfully logged on." [search index=randomlogs host=employeetermlist20140311 | rex "(?i)^(?:[^,]*,){2}(?P&amp;lt;ADAcctName&amp;gt;[^,]+)" | rex "(?i) .*?,(?P&amp;lt;TermDate&amp;gt;\\d+/\\d+/\\d+)(?=,)" | rename ADAcctName AS Account_Name | table Account_Name TermDate | fields Account_Name TermDate] | eval NewAccount_Name=mvindex(Account_Name, 1) | stats max(_time) by NewAccount_Name | rename max(_time) AS Last_Login | eval Last_Successful_Login=strftime(Last_Login, "%m/%d/%Y") | table NewAccount_Name TermDate Last_Successful_Login
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My search works just find without TermDate and I figured out that the problem is with my fields &lt;/P&gt;

&lt;P&gt;I tried listed them multiple different ways but it never pulls TermDate out with my Account_Name?&lt;/P&gt;

&lt;P&gt;I know it's something easy just not sure what.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2014 17:17:13 GMT</pubDate>
    <dc:creator>Phynyte</dc:creator>
    <dc:date>2014-03-11T17:17:13Z</dc:date>
    <item>
      <title>Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182188#M52546</link>
      <description>&lt;P&gt;what does the syntax look like so I can pull Multiple fields from a subsearch to an outer search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=security "An account was successfully logged on." [search index=randomlogs host=employeetermlist20140311 | rex "(?i)^(?:[^,]*,){2}(?P&amp;lt;ADAcctName&amp;gt;[^,]+)" | rex "(?i) .*?,(?P&amp;lt;TermDate&amp;gt;\\d+/\\d+/\\d+)(?=,)" | rename ADAcctName AS Account_Name | table Account_Name TermDate | fields Account_Name TermDate] | eval NewAccount_Name=mvindex(Account_Name, 1) | stats max(_time) by NewAccount_Name | rename max(_time) AS Last_Login | eval Last_Successful_Login=strftime(Last_Login, "%m/%d/%Y") | table NewAccount_Name TermDate Last_Successful_Login
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My search works just find without TermDate and I figured out that the problem is with my fields &lt;/P&gt;

&lt;P&gt;I tried listed them multiple different ways but it never pulls TermDate out with my Account_Name?&lt;/P&gt;

&lt;P&gt;I know it's something easy just not sure what.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 17:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182188#M52546</guid>
      <dc:creator>Phynyte</dc:creator>
      <dc:date>2014-03-11T17:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182189#M52547</link>
      <description>&lt;P&gt;Check to make sure your extractions are the same case as what you are trying to list. TermDate is not the same as termdate.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 20:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182189#M52547</guid>
      <dc:creator>antlefebvre</dc:creator>
      <dc:date>2014-03-11T20:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182190#M52548</link>
      <description>&lt;P&gt;I updated the search and it's still not working.&lt;/P&gt;

&lt;P&gt;index=security "An account was successfully logged on." [search index=randomlogs host=employeetermlist20140311 | rex "(?i)^(?:[^,],){2}(?P&lt;ADACCTNAME&gt;[^,]+)" | rex "(?i) .?,(?P&lt;TERMDATE&gt;\d+/\d+/\d+)(?=,)" | rename ADAcctName AS Account_Name | table Account_Name termdate | fields Account_Name, termdate] | eval NewAccount_Name=mvindex(Account_Name, 1) | stats max(_time) by NewAccount_Name | rename max(_time) AS Last_Login | eval Last_Successful_Login=strftime(Last_Login, "%m/%d/%Y") | table NewAccount_Name termdate Last_Successful_Login&lt;/TERMDATE&gt;&lt;/ADACCTNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182190#M52548</guid>
      <dc:creator>Phynyte</dc:creator>
      <dc:date>2020-09-28T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182191#M52549</link>
      <description>&lt;P&gt;Yes the inner search works just fine if executed by itself&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 20:50:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182191#M52549</guid>
      <dc:creator>Phynyte</dc:creator>
      <dc:date>2014-03-11T20:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182192#M52550</link>
      <description>&lt;P&gt;Yes it does&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 20:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182192#M52550</guid>
      <dc:creator>Phynyte</dc:creator>
      <dc:date>2014-03-11T20:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182193#M52551</link>
      <description>&lt;P&gt;I'm guessing your full search is pulling the Account_Name from the security index. Not the randomlogs index. In that case your not actually getting a event matches with the termdate.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 21:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182193#M52551</guid>
      <dc:creator>antlefebvre</dc:creator>
      <dc:date>2014-03-11T21:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182194#M52552</link>
      <description>&lt;P&gt;Do the index=security have field named TermDate?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 21:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182194#M52552</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-11T21:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fields Search Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182195#M52553</link>
      <description>&lt;P&gt;No term date only exists within the randomlogs search. I just want to pull that field out of the inner search and any account name returned I wanted to match the term date in a table beside it&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 11:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fields-Search-Issue/m-p/182195#M52553</guid>
      <dc:creator>Phynyte</dc:creator>
      <dc:date>2014-03-12T11:31:52Z</dc:date>
    </item>
  </channel>
</rss>

