<?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 Configuring splunk forwarder. Have duplicate usernames over multiple linux hosts. How to identify unique source? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configuring-splunk-forwarder-Have-duplicate-usernames-over/m-p/145307#M29650</link>
    <description>&lt;P&gt;I am pulling data from several linux hosts, each host has several users, and i am collecting data from each users llog folder.&lt;/P&gt;

&lt;P&gt;host1:&lt;BR /&gt;
/opt/ABC/log/logfile1&lt;BR /&gt;
/opt/ABCDEV/log/logfile1&lt;/P&gt;

&lt;P&gt;host2:&lt;BR /&gt;
/opt/ABC/log/logfile1&lt;BR /&gt;
/opt/ABCLIVE/log/logfile1&lt;/P&gt;

&lt;P&gt;This is my config from \Client panel\Dynamic Options:&lt;/P&gt;

&lt;P&gt;index=ABC sourcetype=host Logon | dedup source | rex field=source "\/.&lt;EM&gt;ABC(?.&lt;/EM&gt;)\/lo.*" |eval Client=replace(Client,"\d","") | sort auto&lt;/P&gt;

&lt;P&gt;Command used to add file to monitor on each host:&lt;/P&gt;

&lt;P&gt;/opt/splunkforwarder/bin/splunk add monitor /opt//log/logfile1 -index ABC -sourcetype HOST&lt;/P&gt;

&lt;P&gt;The issue is that within Splunk home page, I have HOST , CLIENT&lt;BR /&gt;
However due to the generic username of 'ABC' on host1 &amp;amp; host2 it is resulting in only one entry for 'Client\source', so im missing a source for host2 ABC user.&lt;/P&gt;

&lt;P&gt;Ie:&lt;/P&gt;

&lt;P&gt;/opt/ABC/log/logfile1&lt;BR /&gt;
/opt/ABCDEV/log/logfile1&lt;BR /&gt;
/opt/ABCLIVE/log/logfile1&lt;/P&gt;

&lt;P&gt;Is there a way that i can configure splunk in order to be able to identify the 'generic' user?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2015 06:54:11 GMT</pubDate>
    <dc:creator>stu6000</dc:creator>
    <dc:date>2015-02-17T06:54:11Z</dc:date>
    <item>
      <title>Configuring splunk forwarder. Have duplicate usernames over multiple linux hosts. How to identify unique source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuring-splunk-forwarder-Have-duplicate-usernames-over/m-p/145307#M29650</link>
      <description>&lt;P&gt;I am pulling data from several linux hosts, each host has several users, and i am collecting data from each users llog folder.&lt;/P&gt;

&lt;P&gt;host1:&lt;BR /&gt;
/opt/ABC/log/logfile1&lt;BR /&gt;
/opt/ABCDEV/log/logfile1&lt;/P&gt;

&lt;P&gt;host2:&lt;BR /&gt;
/opt/ABC/log/logfile1&lt;BR /&gt;
/opt/ABCLIVE/log/logfile1&lt;/P&gt;

&lt;P&gt;This is my config from \Client panel\Dynamic Options:&lt;/P&gt;

&lt;P&gt;index=ABC sourcetype=host Logon | dedup source | rex field=source "\/.&lt;EM&gt;ABC(?.&lt;/EM&gt;)\/lo.*" |eval Client=replace(Client,"\d","") | sort auto&lt;/P&gt;

&lt;P&gt;Command used to add file to monitor on each host:&lt;/P&gt;

&lt;P&gt;/opt/splunkforwarder/bin/splunk add monitor /opt//log/logfile1 -index ABC -sourcetype HOST&lt;/P&gt;

&lt;P&gt;The issue is that within Splunk home page, I have HOST , CLIENT&lt;BR /&gt;
However due to the generic username of 'ABC' on host1 &amp;amp; host2 it is resulting in only one entry for 'Client\source', so im missing a source for host2 ABC user.&lt;/P&gt;

&lt;P&gt;Ie:&lt;/P&gt;

&lt;P&gt;/opt/ABC/log/logfile1&lt;BR /&gt;
/opt/ABCDEV/log/logfile1&lt;BR /&gt;
/opt/ABCLIVE/log/logfile1&lt;/P&gt;

&lt;P&gt;Is there a way that i can configure splunk in order to be able to identify the 'generic' user?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 06:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuring-splunk-forwarder-Have-duplicate-usernames-over/m-p/145307#M29650</guid>
      <dc:creator>stu6000</dc:creator>
      <dc:date>2015-02-17T06:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring splunk forwarder. Have duplicate usernames over multiple linux hosts. How to identify unique source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuring-splunk-forwarder-Have-duplicate-usernames-over/m-p/145308#M29651</link>
      <description>&lt;P&gt;Your dedup is removing all the duplicated sources if I understand this correctly.&lt;/P&gt;

&lt;P&gt;Why not use the host field for these sources? That will be unique... So do something similar as..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ABC sourcetype=host Logon | rex field=source "/opt\/(?P&amp;lt;Client&amp;gt;w+))\/" |stats count by host, Client 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your host field will be unique to each event. You can extract the Client name from the path and then do a dedup or stats count on it.. That will give you a unique count of events by host and by Client (username/ path on disk..)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 07:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuring-splunk-forwarder-Have-duplicate-usernames-over/m-p/145308#M29651</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-02-17T07:12:21Z</dc:date>
    </item>
  </channel>
</rss>

