<?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 Re: Normalize user fields across multiple sourcetypes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253940#M48751</link>
    <description>&lt;P&gt;That was it - created three field aliases and was able to run the search - thx for everyone's help!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 16:57:08 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2016-10-13T16:57:08Z</dc:date>
    <item>
      <title>Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253934#M48745</link>
      <description>&lt;P&gt;I have three different sourcetypes in which each user field is labeled differently: TargetUserName, User, sremote_userid&lt;/P&gt;

&lt;P&gt;I would like to normalize the user fields so I could search just one field (myuser) for failed logins across all three sourcetypes. &lt;/P&gt;

&lt;P&gt;I created a field alias called 'myuser'  that contains the three field aliases (TargetUserName=myuser, User=TargetUserName, sremote_userid=myuser). I assume I know have to create three different eventtypes, one failed login eventtype for each sourcetype. &lt;/P&gt;

&lt;P&gt;Once I create the three eventtypes, what would my search look like?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253934#M48745</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-10-13T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253935#M48746</link>
      <description>&lt;P&gt;Once created the Three eventypes For failed login, assign to each one the tag=LOGFAIL.&lt;BR /&gt;
Now you can search For tag=LOGFAIL and take the Three eventypes events.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253935#M48746</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-13T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253936#M48747</link>
      <description>&lt;P&gt;I would do this: as you create each of the failed login eventtypes, give all the of them the same &lt;CODE&gt;tag&lt;/CODE&gt; - let's call it "failed_login".&lt;/P&gt;

&lt;P&gt;Then your search could look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tag=failed_login | stats count by myuser host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I just made up the stats for fun. If you choose not to tag the eventtypes, then your search would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=fail_type1 OR eventtype=fail_type2 OR eventtype=fail_type3 | stats count by myuser host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253936#M48747</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-10-13T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253937#M48748</link>
      <description>&lt;P&gt;I created the three event types and assigned tag=failure to each. I then run a search 'tag::failure'.&lt;/P&gt;

&lt;P&gt;How do I then search by the field alias 'myuser' instead of searching on the three individual user fields?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253937#M48748</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-10-13T16:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253938#M48749</link>
      <description>&lt;P&gt;Thx for the reply.&lt;/P&gt;

&lt;P&gt;I am running the search, 'tag::failure | stats count by myuser', but I am getting no results found as opposed to running 'tag::failure' and getting results.&lt;/P&gt;

&lt;P&gt;I double checked my field alias, 'myuser', and it reads as follows:&lt;/P&gt;

&lt;P&gt;TargetUserName = myuser&lt;BR /&gt;
User = myuser&lt;BR /&gt;
sremote_UserID = myuser&lt;/P&gt;

&lt;P&gt;I did restart Splunk to ensure the changes took place.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253938#M48749</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-10-13T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253939#M48750</link>
      <description>&lt;P&gt;Right now I have one alias with a '*' for sourcetype. Do I need to create an alias per sourcetype (in my case three aliases)?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:52:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253939#M48750</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-10-13T16:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253940#M48751</link>
      <description>&lt;P&gt;That was it - created three field aliases and was able to run the search - thx for everyone's help!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253940#M48751</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-10-13T16:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253941#M48752</link>
      <description>&lt;P&gt;When you run the search (without the stats), do you see the 4 fields in the "fields sidebar?"&lt;BR /&gt;
All of them should appear. You might have to click the "all fields" link to see them.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253941#M48752</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-10-13T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253942#M48753</link>
      <description>&lt;P&gt;Yes, aliases are per sourcetype. Actually, you should only need 3 aliases - each alias should be specific to a sourcetype. Also, if you want others to use your aliases, tags and eventtypes, you should be sure to change the permissions to read - and make them consistent. It won't work for you to give read permissions for the tag, but no permissions for the underlying fields or eventtypes.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:02:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253942#M48753</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-10-13T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253943#M48754</link>
      <description>&lt;P&gt;I have three aliases with the read permission set and I am now getting results. I am in the process of creating other aliases (for IP, host, etc) so I can incorporate those into the search as well.&lt;/P&gt;

&lt;P&gt;Thx again!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253943#M48754</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-10-13T17:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253944#M48755</link>
      <description>&lt;P&gt;Hi @jwalzerpitt&lt;/P&gt;

&lt;P&gt;Glad you found a solution through the awesome @lguinn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please don't forget to resolve the post by clicking "Accept" directly below her answer. Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253944#M48755</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-10-13T17:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize user fields across multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253945#M48756</link>
      <description>&lt;P&gt;She is awesome! Answer accepted&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Normalize-user-fields-across-multiple-sourcetypes/m-p/253945#M48756</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-10-13T17:36:57Z</dc:date>
    </item>
  </channel>
</rss>

