<?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: Log file is importing: How to parse the event? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/648077#M110181</link>
    <description>&lt;P&gt;I found the erex command that works,&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;| erex ImportCount examples="0,18729,49377"&lt;/P&gt;&lt;P&gt;But you have to enter a sample of the text you are looking for.&amp;nbsp; So it only works for one day and it has to be changed.&amp;nbsp; Can regex be used in place of the examples?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 18:26:45 GMT</pubDate>
    <dc:creator>richtate</dc:creator>
    <dc:date>2023-06-23T18:26:45Z</dc:date>
    <item>
      <title>Log file is importing: How to parse the event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/647991#M110174</link>
      <description>&lt;P&gt;I am getting the log file imported to Splunk, but each line is an event with no field name.&amp;nbsp; Can I break up the line into columns?&amp;nbsp; If not, how do I parse the line to extract a number?&lt;/P&gt;
&lt;P&gt;Index is:&lt;/P&gt;
&lt;P&gt;index=test_7d sourcetype=kafka:producer:bigfix&lt;/P&gt;
&lt;P&gt;Events are:&lt;/P&gt;
&lt;P&gt;2023-06-22 09:15:44,270 root - INFO - &lt;STRONG&gt;114510&lt;/STRONG&gt; events have been uploaded to topic DC2_Endpoint_Configuration_IBM_BigFix_Patch_Join on Kafka&lt;BR /&gt;2023-06-22 09:15:37,204 root - INFO - Executing getDatafromDB&lt;BR /&gt;2023-06-22 09:15:35,704 root - INFO - &lt;STRONG&gt;35205&lt;/STRONG&gt; events have been uploaded to topic DC2_Endpoint_Configuration_IBM_BigFix_Patch_Join on Kafka&lt;BR /&gt;2023-06-22 09:15:33,286 root - INFO - Executing getDatafromDB&lt;BR /&gt;2023-06-22 09:15:32,703 root - INFO - &lt;STRONG&gt;167996&lt;/STRONG&gt; events have been uploaded to topic DC2_Endpoint_Configuration_IBM_BigFix_Patch_Join on Kafka&lt;BR /&gt;2023-06-22 09:15:22,479 root - INFO - Executing getDatafromDB&lt;BR /&gt;2023-06-22 09:15:19,031 root - INFO - &lt;STRONG&gt;181&lt;/STRONG&gt; events have been uploaded to topic DC2_Endpoint_Configuration_IBM_BigFix_Patch_Join on Kafka&lt;/P&gt;
&lt;P&gt;Each line/event starts with the date, the wordwrap is making it look incorrect.&amp;nbsp; I need to parse the bold number of each line after '- INFO -' and add a zero if no number.&amp;nbsp; I can do this with a eval, but how do I parse if there is no field name to add to the 'regex' command?&lt;/P&gt;
&lt;P&gt;Thank you for looking at this problem!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 17:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/647991#M110174</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2023-06-22T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Log file is importing, need to parse the event.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/647994#M110175</link>
      <description>&lt;P&gt;For example, here I'm using 'regex' to remove Operating Systems from dataset on a fieldname 'operating_system' which is one column of an sourcetype:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;| regex operating_system!="(Linux|AIX|CENTOS|WINDOWS|Digital UNIX|FreeBSD|HP-UX|Hyper-V|Juniper|Mac|Windows|NetBSD|OpenBSD|OpenVMS|Server 2012|Server Core 2012|Server 2016|Server 2019|Ubuntu|Solaris|Unix|ESX|vCenter Server|rbash|[\*\*\*\*\*\*]|\A[\-\-\-\-\-\-\-\-\-\-]|[\=\=\=\=\=\=\=\=\=\=])"&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 17:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/647994#M110175</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2023-06-22T17:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Log file is importing: How to parse the event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/648077#M110181</link>
      <description>&lt;P&gt;I found the erex command that works,&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;| erex ImportCount examples="0,18729,49377"&lt;/P&gt;&lt;P&gt;But you have to enter a sample of the text you are looking for.&amp;nbsp; So it only works for one day and it has to be changed.&amp;nbsp; Can regex be used in place of the examples?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 18:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/648077#M110181</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2023-06-23T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Log file is importing: How to parse the event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/648224#M110211</link>
      <description>&lt;P&gt;Any help is appreciated, even if it means this is in the wrong category..&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/648224#M110211</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2023-06-26T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Log file is importing, need to parse the event.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/648242#M110214</link>
      <description>&lt;P&gt;Found the answer:&lt;/P&gt;&lt;PRE&gt;| rex "INFO - (?&amp;lt;eventCount&amp;gt;\d+)"
| fillnull value=0 eventCount&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 17:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log-file-is-importing-How-to-parse-the-event/m-p/648242#M110214</guid>
      <dc:creator>richtate</dc:creator>
      <dc:date>2023-06-26T17:48:38Z</dc:date>
    </item>
  </channel>
</rss>

