<?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: How to separate and get indexed logs coming from two different hosts in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109787#M23077</link>
    <description>&lt;P&gt;Try to set Regex for some field that is present in your log events. Say for example: DLP-&lt;/P&gt;</description>
    <pubDate>Fri, 05 Sep 2014 17:48:11 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2014-09-05T17:48:11Z</dc:date>
    <item>
      <title>How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109776#M23066</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;BR /&gt;
I getting two types of logs: 1&amp;gt;fireeye 2&amp;gt;dlp on the same port(514). two logs are being indexed to main index. now i want to separate those two to different indexes are 1&amp;gt;fireeye 2&amp;gt;dlp. at the same time i need to override source type also for both.&lt;BR /&gt;
please help me on this......... &lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109776#M23066</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2014-09-03T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109777#M23067</link>
      <description>&lt;P&gt;For the sourcetype bit look at transforms.conf. You can use regex to identify the message type and change the value of the sourcetype.&lt;/P&gt;

&lt;P&gt;Not sure if this is doable for the index as well. But this should get you started.&lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 17:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109777#M23067</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2014-09-03T17:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109778#M23068</link>
      <description>&lt;P&gt;You can configure the inputs.conf file on the splunk forwarders for this purpose. &lt;/P&gt;

&lt;P&gt;Add an additional entry for index, sourcetype for each log type like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;stanza associated with the logs&amp;gt;]
index=fireeye           
sourcetype=fireeye_logs 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to have those indexes created on the splunk indexer before you begin forwarding data.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 17:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109778#M23068</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-03T17:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109779#M23069</link>
      <description>&lt;P&gt;You need some identifier to distinguish the two logs. Say for example, the FireEye log formats CEF, LEEF, CSV all have FireEye word. Like CEF:0|FireEye, CSV:0:FireEye. So you can use FireEye as the regex.&lt;BR /&gt;&lt;BR /&gt;
&lt;STRONG&gt;Note:&lt;/STRONG&gt; May be you need to think for better regexes. I am just showing you how it can be done.&lt;/P&gt;

&lt;P&gt;transforms.conf  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_sourcetype_FireEye]  
REGEX = FireEye  
FORMAT = sourcetype::fireeye_log  
DEST_KEY = MetaData:Sourcetype 

[set_index_FireEye]  
REGEX = FireEye  
FORMAT = fireeye_index  
DEST_KEY = _MetaData:Index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Similarly create transforms for dlp logs. Then,&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::udp:514]  
TRANSFORMS-include = set_sourcetype_FireEye, set_index_FireEye, set_sourcetype_dlp, set_index_dlp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The following links will help you with more details:&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://"&gt;http://answers.splunk.com/answers/70027/spliting-multiple-feed-that-use-udp514&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://"&gt;http://answers.splunk.com/answers/7125/sending-to-different-index-based-on-host-from-syslog-stream#answer-7127&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 17:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109779#M23069</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-09-03T17:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109780#M23070</link>
      <description>&lt;P&gt;There is also an app for FireEye. I think you should have a look at it. They have many regexes which you can reuse.&lt;BR /&gt;
For example, for setting sourcetype:&lt;/P&gt;

&lt;P&gt;[fix_FireEye_CEF_st]&lt;BR /&gt;
REGEX=&lt;CODE&gt;\|FireEye\|&lt;/CODE&gt;&lt;BR /&gt;
DEST_KEY=MetaData:Sourcetype&lt;BR /&gt;
FORMAT=sourcetype::FireEye_CEF&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109780#M23070</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2020-09-28T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109781#M23071</link>
      <description>&lt;P&gt;only once i got the data to index. not getting data continuously to index&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 06:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109781#M23071</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2014-09-04T06:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109782#M23072</link>
      <description>&lt;P&gt;transforms.con&lt;BR /&gt;
[set_sourcetype_dlp] &lt;BR /&gt;
SOURCE_KEY = MetaData:Host &lt;BR /&gt;
REGEX=^host::(10.215.2.\55+)$ &lt;BR /&gt;
FORMAT = sourcetype::dlp&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
[set_index_dlp] &lt;BR /&gt;
SOURCE_KEY = MetaData:Host &lt;BR /&gt;
REGEX=^host::(10.215.2.\55+)$&lt;BR /&gt;&lt;BR /&gt;
FORMAT = dlp&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
[set_sourcetype_fireeye_malware_alerts]&lt;BR /&gt;&lt;BR /&gt;
SOURCE_KEY = MetaData:Host&lt;BR /&gt;
REGEX=^host::(10.201.50.\240+)$ &lt;BR /&gt;
FORMAT = sourcetype::fireeye_malware_alerts&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
[set_index_fireeye_csv]&lt;BR /&gt;&lt;BR /&gt;
SOURCE_KEY = MetaData:Host&lt;BR /&gt;
REGEX=^host::(10.201.50.\240+)$&lt;BR /&gt;&lt;BR /&gt;
FORMAT = fireeye_csv&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109782#M23072</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-28T17:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109783#M23073</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[source::udp:514]&lt;BR /&gt;&lt;BR /&gt;
TRANSFORMS-include = set_sourcetype_dlp, set_index_dlp, set_sourcetype_fireeye_malware_alerts, set_index_fireeye_csv&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109783#M23073</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-28T17:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109784#M23074</link>
      <description>&lt;P&gt;You mean to say you received data into two separate indexes once?&lt;/P&gt;

&lt;P&gt;As per your regex, will you always have &lt;CODE&gt;host::(10.xx.xx.xx+)&lt;/CODE&gt; at the start on all your log lines?&lt;/P&gt;

&lt;P&gt;I think this might be causing problem. You need to revisit your regex.&lt;/P&gt;

&lt;P&gt;Can you post some log samples for both fireeye and dlp&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 09:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109784#M23074</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-09-04T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109785#M23075</link>
      <description>&lt;P&gt;dlp:&lt;BR /&gt;
Sep  5 09:10:37 10.215.2.55 Sep  5 09:10:37  DLP-BLR-ENF-SEC.wipro.com ID: 9713957, Policy Violated: SMTP Last Working Day, Count: 3, Protocol: SMTP, Recipient: &lt;A href="mailto:haripriya.elangovan@gmail.com"&gt;haripriya.elangovan@gmail.com&lt;/A&gt;,&lt;A href="mailto:kannan_shakthi@ymail.com"&gt;kannan_shakthi@ymail.com&lt;/A&gt;, Sender: &lt;A href="mailto:kalaiselvi.s19@wipro.com"&gt;kalaiselvi.s19@wipro.com&lt;/A&gt;, Severity: 1:High, Subject: FW: Mega Employee Referral Walk-In Opportunities for Associate, Target: N/A, Filename: N/A, Blocked: Passed, Endpoint: N/A&lt;/P&gt;

&lt;P&gt;Sep  5 09:07:56 10.215.2.55 Sep  5 09:07:56  DLP-BLR-ENF-SEC.wipro.com ID: 9713945, Policy Violated: SMTP Customer Data Monitoring, Count: 12, Protocol: SMTP, Recipient: &lt;A href="mailto:dinesh.maksat@gmail.com"&gt;dinesh.maksat@gmail.com&lt;/A&gt;,&lt;A href="mailto:niklesh.gupta2@wipro.com"&gt;niklesh.gupta2@wipro.com&lt;/A&gt;,&lt;A href="mailto:Devender.Thakur@airtel.com"&gt;Devender.Thakur@airtel.com&lt;/A&gt;,&lt;A href="mailto:abinish.bhakhan1@wipro.com"&gt;abinish.bhakhan1@wipro.com&lt;/A&gt;,&lt;A href="mailto:amit.tanwar5@wipro.com"&gt;amit.tanwar5@wipro.com&lt;/A&gt;,&lt;A href="mailto:a_vivek.tanwar@in.airtel.com"&gt;a_vivek.tanwar@in.airtel.com&lt;/A&gt;,&lt;A href="mailto:wajahat.shreemal@gmail.com"&gt;wajahat.shreemal@gmail.com&lt;/A&gt;,&lt;A href="mailto:rajeev.sharma4@wipro.com"&gt;rajeev.sharma4@wipro.com&lt;/A&gt;,&lt;A href="mailto:rohit.kumar44@wipro.com"&gt;rohit.kumar44@wipro.com&lt;/A&gt;,&lt;A href="mailto:ashutosh.singh20@wipro.com"&gt;ashutosh.singh20@wipro.com&lt;/A&gt;, Sender: &lt;A href="mailto:amit.bhardwaj3@wipro.com"&gt;amit.bhardwaj3@wipro.com&lt;/A&gt;, Severity: 1:High, Subject: TO BE ADD IN NMS, Target: N/A, Filename: N/A, Blocked: Passed, Endpoint: N/A&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 03:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109785#M23075</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2014-09-05T03:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109786#M23076</link>
      <description>&lt;P&gt;my regex correct only, getting dlp logs from only one host:10.215.2.55 and fireeye logs from only one host:10.201.50.240&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 03:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109786#M23076</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2014-09-05T03:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109787#M23077</link>
      <description>&lt;P&gt;Try to set Regex for some field that is present in your log events. Say for example: DLP-&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 17:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109787#M23077</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-09-05T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109788#M23078</link>
      <description>&lt;P&gt;regex=DLP for dlp and regex=fenotify for fireeye_csv. dlp is working, data getting indexed to dlp and fireeye_csv is not.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109788#M23078</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-28T17:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109789#M23079</link>
      <description>&lt;P&gt;[set_sourcetype_dlp] &lt;BR /&gt;
REGEX= DLP &lt;BR /&gt;
FORMAT = sourcetype::dlp&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;[set_index_dlp] &lt;BR /&gt;
REGEX= DLP&lt;BR /&gt;
FORMAT = dlp&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;/P&gt;

&lt;P&gt;[set_sourcetype_fireeye_malware_alerts]&lt;BR /&gt;&lt;BR /&gt;
REGEX= fenotify&lt;BR /&gt;
FORMAT = sourcetype::fireeye_malware_alerts&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;[set_index_fireeye_csv]&lt;BR /&gt;&lt;BR /&gt;
REGEX= fenotify&lt;BR /&gt;
SOURCE_KEY = MetaData:Host&lt;BR /&gt;&lt;BR /&gt;
FORMAT = fireeye_csv&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109789#M23079</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-28T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate and get indexed logs coming from two different hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109790#M23080</link>
      <description>&lt;H2&gt;inputs.conf&lt;/H2&gt;

&lt;P&gt;[udp://514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
index = main&lt;BR /&gt;
source = &lt;BR /&gt;
sourcetype = dlp_fireeye&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
 on 514 im getting two types of logs if i change index in inputs.conf both logs get indexed to that index.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-separate-and-get-indexed-logs-coming-from-two-different/m-p/109790#M23080</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-28T17:31:39Z</dc:date>
    </item>
  </channel>
</rss>

