<?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: Collect Command Creating Single Line Events and One Multi line Event in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Collect-Command-Creating-Single-Line-Events-and-One-Multi-line/m-p/268260#M2364</link>
    <description>&lt;P&gt;Thanks Omar, that did help, I had individual events with the same time stamp getting processed by collect in multivalue events.&lt;BR /&gt;
Your answer helped me find the workaround, I put&lt;BR /&gt;
    table _raw&lt;BR /&gt;
before the collect and it has maintained single events.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 23:14:46 GMT</pubDate>
    <dc:creator>proylea</dc:creator>
    <dc:date>2018-01-16T23:14:46Z</dc:date>
    <item>
      <title>Collect Command Creating Single Line Events and One Multi line Event</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Collect-Command-Creating-Single-Line-Events-and-One-Multi-line/m-p/268258#M2362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am having a bit of an issue with the collect command.&lt;BR /&gt;
I'm trying to index an ldap search so i can use the data.&lt;BR /&gt;
My ldap search is quite simple and it works well (i.e. it returns the expected results):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|ldapsearch search="(&amp;amp;(objectClass=computer)(!(useraccountcontrol:1.2.840.113556.1.4.803:=2))" attrs="cn"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;(I am getting the cn of every computer that is not disabled)&lt;/P&gt;

&lt;P&gt;to this search, i am adding this so i can index the result in splunk:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|collect index=ldap_summary sourcetype=ldap:computeraccount&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The indexing job works for the most part, but for a couple of hundreds of computer, it creates a single multi line event containing more than 200 events.&lt;/P&gt;

&lt;P&gt;I cannot understand why it is doing this as i have tried the testmode attribute of the collect command, and the preview is correct: one single line events for every AD object.&lt;/P&gt;

&lt;P&gt;Any help on the matter would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 12:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Collect-Command-Creating-Single-Line-Events-and-One-Multi-line/m-p/268258#M2362</guid>
      <dc:creator>mgagnaire</dc:creator>
      <dc:date>2015-10-09T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Collect Command Creating Single Line Events and One Multi line Event</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Collect-Command-Creating-Single-Line-Events-and-One-Multi-line/m-p/268259#M2363</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have finally found a workaround and the following is the workaround I used.&lt;/P&gt;

&lt;P&gt;Just before the collect pipe, i stored the field that i wanted (here cn) in a table. The indexing result is composed of only single events (no more 300 hundred events in one) with info about the search and the table processing. At least i have my field and all the values i am interested in.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| ldapsearch search="(&amp;amp;(objectCategory=computer)(objectClass=user)(!(useraccountcontrol:1.2.840.113556.1.4.803:=2)))" attrs="cn" | table cn | collect index=ldap_summary sourcetype="ldap:computeraccount"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am not sure why this works but it does.&lt;BR /&gt;
I hope this can help someone in the future.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 12:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Collect-Command-Creating-Single-Line-Events-and-One-Multi-line/m-p/268259#M2363</guid>
      <dc:creator>mgagnaire</dc:creator>
      <dc:date>2015-10-13T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Collect Command Creating Single Line Events and One Multi line Event</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Collect-Command-Creating-Single-Line-Events-and-One-Multi-line/m-p/268260#M2364</link>
      <description>&lt;P&gt;Thanks Omar, that did help, I had individual events with the same time stamp getting processed by collect in multivalue events.&lt;BR /&gt;
Your answer helped me find the workaround, I put&lt;BR /&gt;
    table _raw&lt;BR /&gt;
before the collect and it has maintained single events.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 23:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Collect-Command-Creating-Single-Line-Events-and-One-Multi-line/m-p/268260#M2364</guid>
      <dc:creator>proylea</dc:creator>
      <dc:date>2018-01-16T23:14:46Z</dc:date>
    </item>
  </channel>
</rss>

