<?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: Not automatically recognizing fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94808#M24507</link>
    <description>&lt;P&gt;You should either put timestamps in your data, or set &lt;CODE&gt;DATETIME_CONFIG = CURRENT&lt;/CODE&gt; for your sourcetype.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2010 04:57:21 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-11-30T04:57:21Z</dc:date>
    <item>
      <title>Not automatically recognizing fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94805#M24504</link>
      <description>&lt;P&gt;I have data that is not being recognized. A PowerShell script outputs data (that I copied to a file for testing) that looks like this:&lt;/P&gt;

&lt;P&gt;Identity = MAILHUB2\45191, DeliveryType = SmtpRelayToTiRg, Status = Ready, MessageCount = 0&lt;BR /&gt;
Identity = MAILHUB2\45210, DeliveryType = MapiDelivery, Status = Ready, MessageCount = 0&lt;BR /&gt;
Identity = MAILHUB2\45226, DeliveryType = MapiDelivery, Status = Ready, MessageCount = 0&lt;BR /&gt;
Identity = MAILHUB2\45235, DeliveryType = MapiDelivery, Status = Ready, MessageCount = 0  &lt;/P&gt;

&lt;P&gt;I formatted the PowerShell output like what I saw in the manual, which described the formatting as "Splunk loves these files. It eats them like jam (or chocolate)", from &lt;A href="http://www.splunk.com/base/Documentation/latest/AppManagement/Getdata" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/AppManagement/Getdata&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;Well it doesn't like that formatting! I've played with this endlessly, changing commas, replacing = with :...no luck.&lt;/P&gt;

&lt;P&gt;Splunk idexes it like this:&lt;/P&gt;

&lt;P&gt;1&lt;BR /&gt;
11/25/10
1:56:07.000 PM&lt;BR /&gt;
geCount = 0
host=localhost   Options|  sourcetype=access_combined   Options|  source=script   Options&lt;/P&gt;

&lt;P&gt;2&lt;BR /&gt;
11/25/10
1:56:07.000 PM&lt;BR /&gt;
Identity = MAILHUB1\Submission, DeliveryType = Undefined, Status = Ready, Messa
host=localhost   Options|  sourcetype=access_combined   Options|  source=script   Options&lt;/P&gt;

&lt;P&gt;3&lt;BR /&gt;
11/25/10
1:56:07.000 PM&lt;BR /&gt;
Count = 0
host=localhost   Options|  sourcetype=access_combined   Options|  source=script   Options&lt;/P&gt;

&lt;P&gt;Please help! Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 04:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94805#M24504</guid>
      <dc:creator>jamesklassen</dc:creator>
      <dc:date>2010-11-26T04:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not automatically recognizing fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94806#M24505</link>
      <description>&lt;P&gt;The data has a new line for each piece of data, I'm not sure why it's not formatted like that above. Each line starts with Identity&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 04:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94806#M24505</guid>
      <dc:creator>jamesklassen</dc:creator>
      <dc:date>2010-11-26T04:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Not automatically recognizing fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94807#M24506</link>
      <description>&lt;P&gt;I figured it out. I tried doing it as CSV, where the first line contains the column headings. I set the script sourcetype to csv-4. Here's the powershell formatting:&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;write-host "Identity, DeliveryType, Status, MessageCount"&lt;/P&gt;

&lt;P&gt;$output = $queue.identity.ToString() + ", " + $queue.deliverytype + ", " + $queue.status + ", " + $queue.MessageCount&lt;/P&gt;

&lt;P&gt;$output&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Splunk now recognizes the field names, and I can alert on when my queues fill up...&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 04:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94807#M24506</guid>
      <dc:creator>jamesklassen</dc:creator>
      <dc:date>2010-11-26T04:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not automatically recognizing fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94808#M24507</link>
      <description>&lt;P&gt;You should either put timestamps in your data, or set &lt;CODE&gt;DATETIME_CONFIG = CURRENT&lt;/CODE&gt; for your sourcetype.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2010 04:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-automatically-recognizing-fields/m-p/94808#M24507</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-11-30T04:57:21Z</dc:date>
    </item>
  </channel>
</rss>

