<?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 do I input data event and fields? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-input-data-event-and-fields/m-p/624488#M107358</link>
    <description>&lt;P&gt;Welcome to the fun world of GDI (Getting Data In)!&lt;/P&gt;&lt;P&gt;If you're getting three events when you should be getting one then your line breaking needs to be adjusted.&amp;nbsp; Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE_BREAKER = ([\r\n])Host Name:&lt;/LI-CODE&gt;&lt;P&gt;Extracting fields from the input is fairly simple with a series of EXTRACT statements.&amp;nbsp; Don't try to do the whole thing in one go because that will drive you mad and will break too easily. (Clever people with a transform that will do the extractions are welcome to chime in!)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-hostname = Host Name:\s+(?&amp;lt;HostName&amp;gt;\S+)
EXTRACT-osname = OS Name:\s+(?&amp;lt;OSName&amp;gt;.*$)
&amp;lt;&amp;lt;and so on&amp;gt;&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And to fix that warning about timestamp extraction, put this in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATETIME_CONFIG = CURRENT&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 16 Dec 2022 01:16:03 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-12-16T01:16:03Z</dc:date>
    <item>
      <title>How do I input data event and fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-input-data-event-and-fields/m-p/624457#M107355</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am inputting a file into Splunk showing the computers system information extracted from the command prompt. The data file I am inputting input Splunk looks like the first photo below, where I want the fields to be set as the values in the first column (circled in red) and their field values equal to their corresponding output value.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ichesla1111_3-1671134845877.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23043i07A8E0B0F1147B06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ichesla1111_3-1671134845877.png" alt="ichesla1111_3-1671134845877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YETTT, when adding it to Splunk, it breaks down the system information file into three events (instead of 1), see image below.&lt;BR /&gt;&lt;BR /&gt;How do I merge these three events into one (match the text file uploaded) and set the fields equal to the systems characteristics seen in the first column (circled in blue)?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ichesla1111_0-1671134493024.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23040i66ACA65A052881BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ichesla1111_0-1671134493024.png" alt="ichesla1111_0-1671134493024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 20:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-input-data-event-and-fields/m-p/624457#M107355</guid>
      <dc:creator>ichesla1111</dc:creator>
      <dc:date>2022-12-15T20:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I input data event and fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-input-data-event-and-fields/m-p/624488#M107358</link>
      <description>&lt;P&gt;Welcome to the fun world of GDI (Getting Data In)!&lt;/P&gt;&lt;P&gt;If you're getting three events when you should be getting one then your line breaking needs to be adjusted.&amp;nbsp; Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LINE_BREAKER = ([\r\n])Host Name:&lt;/LI-CODE&gt;&lt;P&gt;Extracting fields from the input is fairly simple with a series of EXTRACT statements.&amp;nbsp; Don't try to do the whole thing in one go because that will drive you mad and will break too easily. (Clever people with a transform that will do the extractions are welcome to chime in!)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EXTRACT-hostname = Host Name:\s+(?&amp;lt;HostName&amp;gt;\S+)
EXTRACT-osname = OS Name:\s+(?&amp;lt;OSName&amp;gt;.*$)
&amp;lt;&amp;lt;and so on&amp;gt;&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And to fix that warning about timestamp extraction, put this in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DATETIME_CONFIG = CURRENT&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Dec 2022 01:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-input-data-event-and-fields/m-p/624488#M107358</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-16T01:16:03Z</dc:date>
    </item>
  </channel>
</rss>

