<?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: Regex Help Required in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531835#M89456</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your swift response. So I had just validated with the&amp;nbsp;&lt;A href="https://regex101.com/" target="_blank"&gt;https://regex101.com/&lt;/A&gt;&amp;nbsp; and its working perfectly.&lt;/P&gt;&lt;P&gt;So&amp;nbsp; I need another help i.e. I don't want to extract the fields based on sourcetype information since all the events are coming in a single sourcetype so do we have any possibility to extract the fields based on SourceName.&lt;/P&gt;&lt;P&gt;So consider an example my sourcename as "xyz"&lt;/P&gt;&lt;P&gt;So I have just gave a try so kindly check and correct me if i am wrong. So kindly validate me props and transforms and update me.&lt;/P&gt;&lt;P&gt;props.conf&lt;BR /&gt;[SourceName:xyz]&lt;BR /&gt;REPORT-ZZcustom_msg_kv = custom_msg_kv&lt;/P&gt;&lt;P&gt;transforms.conf&lt;BR /&gt;[custom_msg_kv]&lt;BR /&gt;SOURCE_KEY = message&lt;BR /&gt;REGEX = (.*)=(.*?)(?=\s+[a-zA-Z]\w+=|$)&lt;BR /&gt;FORMAT = $1::$2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 09:10:55 GMT</pubDate>
    <dc:creator>anandhalagaras1</dc:creator>
    <dc:date>2020-12-03T09:10:55Z</dc:date>
    <item>
      <title>Regex Help Required</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531830#M89454</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I need a help to extract all the fields in the Wineventlog post the message information in the log. And all the data are getting delimited based on "=".&lt;/P&gt;&lt;P&gt;Sample Event:&lt;/P&gt;&lt;P&gt;10/26/2020 04:44:22 PM&lt;BR /&gt;LogName=xyz&lt;BR /&gt;SourceName=abc&lt;BR /&gt;EventCode=ddd&lt;BR /&gt;EventType=d&lt;BR /&gt;Type=Warning&lt;BR /&gt;ComputerName=xyz.abc.com&lt;BR /&gt;User=NOT_TRANSLATED&lt;BR /&gt;Sid=x-d-d-dd&lt;BR /&gt;SidType=d&lt;BR /&gt;TaskCategory=xxxx&lt;BR /&gt;OpCode=xxxx&lt;BR /&gt;RecordNumber=dddd&lt;BR /&gt;Keywords=xxxxxxx&lt;BR /&gt;Message=An infection has been found&lt;BR /&gt;Date/time of event = 2020-10-26 16:44:22&lt;BR /&gt;Event Severity Level = xxxx&lt;BR /&gt;Scan Rule = xx yy zz&lt;BR /&gt;URL = no_path&lt;BR /&gt;File name = yy.com&lt;BR /&gt;File status = xxxxxx&lt;BR /&gt;Component name = xxxxxx.com&lt;BR /&gt;Component disposition = abc&lt;BR /&gt;Virus name = abc xxx yyy&lt;BR /&gt;Virus ID = 00000&lt;BR /&gt;Virus definitions = 000000.000&lt;BR /&gt;Client IP = xxx.xx.xxx.xx&lt;BR /&gt;Scan Duration (sec) = x.xxx&lt;BR /&gt;Connect Duration (sec) = x.xxx&lt;BR /&gt;Symantec Protection Engine IP address = xx.xxx.xxx.xxx&lt;BR /&gt;Symantec Protection Engine Port number = xxxx&lt;BR /&gt;Uptime (in seconds) = xxxxxxx&lt;BR /&gt;Uber Category = xyz&lt;BR /&gt;Sub Category Name = abc&lt;BR /&gt;Sub Category ID = c&lt;BR /&gt;Sub Category Description = Programs that infect other programs, files, or areas of a computer by inserting themselves or attaching themselves to that medium.&lt;BR /&gt;Cumulative Risk Rating = xyz&lt;BR /&gt;Performance impact = xyz&lt;BR /&gt;Privacy impact = xyz&lt;BR /&gt;Ease of removal = xyz&lt;BR /&gt;Stealth = xyz&lt;BR /&gt;Date/time of event(with millisec) = 2020-10-26 16:44:22:617&lt;BR /&gt;Symantec Protection Engine Host Name = xxxxxx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if i use the below mentioned props &amp;amp; transforms I can able to extract the fields till "Message"&amp;nbsp; only and after which the fields are not getting extracted so kindly help to check and update my regex so that i should be able to extract all the fields post Message field in the log.&lt;/P&gt;&lt;P&gt;i.e. Till Message field there is no "space" included but after the Message field we can see space character is allowed.&lt;/P&gt;&lt;P&gt;props.conf&lt;BR /&gt;[yoursourcetype]&lt;BR /&gt;REPORT-ZZcustom_msg_kv = custom_msg_kv&lt;/P&gt;&lt;P&gt;transforms.conf&lt;BR /&gt;[custom_msg_kv]&lt;BR /&gt;SOURCE_KEY = message&lt;BR /&gt;REGEX = ([a-zA-Z]\w+)=(.*?)(?=\s+[a-zA-Z]\w+=|$)&lt;BR /&gt;FORMAT = $1::$2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also correct me if the props and transforms are correct and the format is also correct or not?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/87518"&gt;@FrankVl&lt;/a&gt;&amp;nbsp; Kindly help on my query.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 08:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531830#M89454</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2020-12-03T08:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help Required</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531832#M89455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207926"&gt;@anandhalagaras1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This seems to work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(.*)=(.*?)(?=\s+[a-zA-Z]\w+=|$)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 08:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531832#M89455</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-12-03T08:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help Required</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531835#M89456</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your swift response. So I had just validated with the&amp;nbsp;&lt;A href="https://regex101.com/" target="_blank"&gt;https://regex101.com/&lt;/A&gt;&amp;nbsp; and its working perfectly.&lt;/P&gt;&lt;P&gt;So&amp;nbsp; I need another help i.e. I don't want to extract the fields based on sourcetype information since all the events are coming in a single sourcetype so do we have any possibility to extract the fields based on SourceName.&lt;/P&gt;&lt;P&gt;So consider an example my sourcename as "xyz"&lt;/P&gt;&lt;P&gt;So I have just gave a try so kindly check and correct me if i am wrong. So kindly validate me props and transforms and update me.&lt;/P&gt;&lt;P&gt;props.conf&lt;BR /&gt;[SourceName:xyz]&lt;BR /&gt;REPORT-ZZcustom_msg_kv = custom_msg_kv&lt;/P&gt;&lt;P&gt;transforms.conf&lt;BR /&gt;[custom_msg_kv]&lt;BR /&gt;SOURCE_KEY = message&lt;BR /&gt;REGEX = (.*)=(.*?)(?=\s+[a-zA-Z]\w+=|$)&lt;BR /&gt;FORMAT = $1::$2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 09:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531835#M89456</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2020-12-03T09:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help Required</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531844#M89457</link>
      <description>&lt;P&gt;The stanza to refer to the source should be&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[source::xyz]&lt;/PRE&gt;&lt;P&gt;Besides that, it looks fine.&lt;BR /&gt;&lt;BR /&gt;Maybe test it local with a single file, before pushing to production.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 10:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-Help-Required/m-p/531844#M89457</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-12-03T10:18:45Z</dc:date>
    </item>
  </channel>
</rss>

