<?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 can I extract the fields from log file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-fields-from-log-file/m-p/616707#M214332</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;- Thank you for your support, It is working fine now.&amp;nbsp; How to remove "+-+" in the field6. I need only file as&amp;nbsp;&lt;STRONG&gt;TestingFileFromSource COME THE END Server FileName.csv &lt;/STRONG&gt;instead of&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;TestingFileFromSource+-+COME+-+THE+END+Server+-+FileName.csv&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2022 15:44:12 GMT</pubDate>
    <dc:creator>nayagan</dc:creator>
    <dc:date>2022-10-11T15:44:12Z</dc:date>
    <item>
      <title>How can I extract the fields from log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-fields-from-log-file/m-p/616701#M214329</link>
      <description>&lt;P&gt;I need to split the below log files to like excel table.&lt;/P&gt;
&lt;P&gt;My Log file is:&lt;/P&gt;
&lt;P&gt;2022-05-25 13:00:02 100.200.190.70 - test [12345]dele /TestingFile+-+END+-+GOD+WEL+SOONER+-+SFTP.txt - 220- 105 - 443&lt;BR /&gt;2022-06-30 12:05:08 200.231.150.150 - welcome [98765]created /TestingFileFromSource+-+COME+-+THE+END+Server+-+FileName.csv - 226 - 19 - 22&lt;/P&gt;
&lt;P&gt;Expected Result is: ( I tried some regular expression but no luck)&lt;/P&gt;
&lt;TABLE width="985"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="132"&gt;Field1&lt;/TD&gt;
&lt;TD width="106"&gt;Field2&lt;/TD&gt;
&lt;TD width="64"&gt;Field3&lt;/TD&gt;
&lt;TD width="64"&gt;Field4&lt;/TD&gt;
&lt;TD width="64"&gt;Field5&lt;/TD&gt;
&lt;TD width="363"&gt;Field6&lt;/TD&gt;
&lt;TD width="64"&gt;Field7&lt;/TD&gt;
&lt;TD width="64"&gt;Field8&lt;/TD&gt;
&lt;TD width="64"&gt;Field9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022/05/25 13:00:02&lt;/TD&gt;
&lt;TD&gt;100.200.190.70&lt;/TD&gt;
&lt;TD&gt;test&lt;/TD&gt;
&lt;TD&gt;12345&lt;/TD&gt;
&lt;TD&gt;dele&lt;/TD&gt;
&lt;TD&gt;TestingFile END GOD WEL sooner SFTP.txt&lt;/TD&gt;
&lt;TD&gt;220&lt;/TD&gt;
&lt;TD&gt;105&lt;/TD&gt;
&lt;TD&gt;443&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022/06/30 12:05:08&lt;/TD&gt;
&lt;TD&gt;200.231.150.150&lt;/TD&gt;
&lt;TD&gt;welcome&lt;/TD&gt;
&lt;TD&gt;98765&lt;/TD&gt;
&lt;TD&gt;created&lt;/TD&gt;
&lt;TD&gt;TestingFileFromSource COME THE END Sending FileName.csv&lt;/TD&gt;
&lt;TD&gt;226&lt;/TD&gt;
&lt;TD&gt;19&lt;/TD&gt;
&lt;TD&gt;22&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-fields-from-log-file/m-p/616701#M214329</guid>
      <dc:creator>nayagan</dc:creator>
      <dc:date>2022-10-11T15:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the fields from log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-fields-from-log-file/m-p/616705#M214331</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250233"&gt;@nayagan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try this regex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;^(?&amp;lt;field1&amp;gt;\d+-\d+-\d+ \d+:\d+:\d+)\s+(?&amp;lt;field2&amp;gt;\d+\.\d+\.\d+\.\d+)\s+-\s+(?&amp;lt;field3&amp;gt;\w+)\s+\[(?&amp;lt;field4&amp;gt;\d+)\](?&amp;lt;field5&amp;gt;\w+)\s+\/(?&amp;lt;field6&amp;gt;.+)-\s+(?&amp;lt;field7&amp;gt;\d+)\s+-\s+(?&amp;lt;field8&amp;gt;\d+)\s+-\s+(?&amp;lt;field9&amp;gt;\d+)&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/ozkFFe/1" target="_blank"&gt;https://regex101.com/r/ozkFFe/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:23:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-fields-from-log-file/m-p/616705#M214331</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-11T15:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the fields from log file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-fields-from-log-file/m-p/616707#M214332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;- Thank you for your support, It is working fine now.&amp;nbsp; How to remove "+-+" in the field6. I need only file as&amp;nbsp;&lt;STRONG&gt;TestingFileFromSource COME THE END Server FileName.csv &lt;/STRONG&gt;instead of&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;TestingFileFromSource+-+COME+-+THE+END+Server+-+FileName.csv&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-fields-from-log-file/m-p/616707#M214332</guid>
      <dc:creator>nayagan</dc:creator>
      <dc:date>2022-10-11T15:44:12Z</dc:date>
    </item>
  </channel>
</rss>

