<?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 How do I edit my search on usernames to also table associated passwords? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220541#M64803</link>
    <description>&lt;P&gt;I am getting Username and User id Fields while search using username, then I pipe it and search user ID to get the password. How to put them in a table  &lt;STRONG&gt;TABLE USERNAME USERID PASSWORD&lt;/STRONG&gt;  like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index!=_internal "USERNAME" | TABLE USERNAME USERID | SEARCH index!=_internal "$USERID$" | TABLE USERNAME USERID PASSWORD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search above is not working.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 13:24:10 GMT</pubDate>
    <dc:creator>mohanmk1905</dc:creator>
    <dc:date>2016-11-15T13:24:10Z</dc:date>
    <item>
      <title>How do I edit my search on usernames to also table associated passwords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220541#M64803</link>
      <description>&lt;P&gt;I am getting Username and User id Fields while search using username, then I pipe it and search user ID to get the password. How to put them in a table  &lt;STRONG&gt;TABLE USERNAME USERID PASSWORD&lt;/STRONG&gt;  like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index!=_internal "USERNAME" | TABLE USERNAME USERID | SEARCH index!=_internal "$USERID$" | TABLE USERNAME USERID PASSWORD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search above is not working.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:24:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220541#M64803</guid>
      <dc:creator>mohanmk1905</dc:creator>
      <dc:date>2016-11-15T13:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my search on usernames to also table associated passwords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220542#M64804</link>
      <description>&lt;P&gt;Hi mohanmk1905,&lt;BR /&gt;
After a table command, the only fields you have are the ones you listed in table: in your example you haven't PASSWORD field in the first table, so, in the following pipes you haven't PASSWORD field, but only USERNAME and USERID.&lt;/P&gt;

&lt;P&gt;Every way it's strange the way you have to build your search:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;why do you use index!=_internal? if you use index=* you have the same result!&lt;/LI&gt;
&lt;LI&gt;if you can, try to express indexes in your search (index=main OR index=web...): it's more efficient;&lt;/LI&gt;
&lt;LI&gt;why do you use fields search in two points? it's more efficient to have only one search as first as possible;&lt;/LI&gt;
&lt;LI&gt;I think that "USERNAME" is a word and not a field, if it's a field you have to insert in your search USERNAME="$USERNAME$" or a value.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Probably your search is better like something:&lt;/P&gt;

&lt;P&gt;index=* "USERNAME" "$USERID$" | TABLE USERNAME USERID PASSWORD&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220542#M64804</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-15T14:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my search on usernames to also table associated passwords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220543#M64805</link>
      <description>&lt;P&gt;Hi mohanmk, &lt;BR /&gt;
Please check this one - &lt;BR /&gt;
&lt;PRE&gt;index!=_internal "USERNAME" OR "$USERID$" | TABLE USERNAME USERID PASSWORD&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220543#M64805</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-11-15T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my search on usernames to also table associated passwords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220544#M64806</link>
      <description>&lt;P&gt;Sorry i didn't convey my question correctly.- This is not an exact scenario but i am trying to make a similar scenario.&lt;/P&gt;

&lt;P&gt;Let me explain it clearly.&lt;/P&gt;

&lt;P&gt;After First search - i am able to take USERNAME AND USERID in a table.&lt;/P&gt;

&lt;P&gt;First search : index = something "USERNAME" | table USERNAME USERID          &lt;/P&gt;

&lt;P&gt;Second search - i am searching all the USERID feilds taken in first search and taking password in the second search for that userid . so i am take USERID and PASSWORD table here.&lt;/P&gt;

&lt;P&gt;index = something "USERNAME" | Index = something   "$USERID$" | TABLE USERID PASSWORD&lt;/P&gt;

&lt;P&gt;i am able to join two searches using  join&lt;/P&gt;

&lt;P&gt;index = something "USERNAME" | table USERNAME USERID | join USERID [SEARCH index = something "USERNAME" | Index = something "$USERID$" | TABLE USERID PASSWORD ]  | table USERNAME USERID PASSWORD.&lt;/P&gt;

&lt;P&gt;But i feel  like i am using the same search (index = something "USERNAME" ) twice in the join scenario.&lt;BR /&gt;
Please how to get that three feild in one search itself&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 07:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220544#M64806</guid>
      <dc:creator>mohanmk1905</dc:creator>
      <dc:date>2016-11-16T07:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my search on usernames to also table associated passwords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220545#M64807</link>
      <description>&lt;P&gt;sorry sir i conveyed my question correctly now&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 07:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220545#M64807</guid>
      <dc:creator>mohanmk1905</dc:creator>
      <dc:date>2016-11-16T07:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my search on usernames to also table associated passwords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220546#M64808</link>
      <description>&lt;P&gt;Hi mohanmk1905,&lt;BR /&gt;
every way the problem is the same: if you haven't password field in the first table command, you haven't it in the second one, try the search I suggested: the output of a command on the left of the pipe "|" is the input for the command on the right of the pipe "|".&lt;BR /&gt;
bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 07:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-search-on-usernames-to-also-table-associated/m-p/220546#M64808</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-16T07:59:29Z</dc:date>
    </item>
  </channel>
</rss>

