<?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: rebuild a syslog event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/679269#M113514</link>
    <description>&lt;P&gt;Hi Alessandro.&lt;/P&gt;&lt;P&gt;If that's your actual copy-pasted excerpt from props.conf you have&lt;/P&gt;&lt;PRE&gt;transforms-rebuild = group1&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;TRANSFORMS-rebuild = group1&lt;/PRE&gt;&lt;P&gt;(yes, case does matter here)&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 11:48:32 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-03-01T11:48:32Z</dc:date>
    <item>
      <title>rebuild a syslog event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/678883#M113454</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a quick question.&lt;/P&gt;&lt;P&gt;currently I have a syslog event and I need to see in splunk the raw data the info in different order:&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;original syslog&lt;/P&gt;&lt;P&gt;(?&amp;lt;field1&amp;gt;REGEX),(?&amp;lt;field2&amp;gt;REGEX),(?&amp;lt;field3&amp;gt;REGEX),&amp;nbsp; etc.......&lt;/P&gt;&lt;P&gt;what I want to see indexed in splunk&lt;/P&gt;&lt;P&gt;(?&amp;lt;field1&amp;gt;REGEX),(?&amp;lt;field3&amp;gt;REGEX),,(?&amp;lt;TIMESTAP&amp;gt;REGEX),(?&amp;lt;field2&amp;gt;REGEX).&lt;/P&gt;&lt;P&gt;I tried with SED command in props.conf is really useful to clean the data but not to reorder the info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/678883#M113454</guid>
      <dc:creator>asabatini</dc:creator>
      <dc:date>2024-02-27T21:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: rebuild a syslog event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/678918#M113458</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256242"&gt;@asabatini&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can reorder or modify raw data using transforms, &amp;nbsp;you need to capture parts of the messages and reorder them like $1$3$2, etc.&lt;/P&gt;&lt;P&gt;please see the document below;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Anonymizedata#Configure_the_transforms.conf_file" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Anonymizedata#Configure_the_transforms.conf_file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 04:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/678918#M113458</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2024-02-28T04:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: rebuild a syslog event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/678947#M113463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree with you, I would show you my props and transforms conf file&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;[custom_syslog]
transforms-rebuild = group1
SHOULD_LINEMERGE = false&lt;/LI-CODE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Transforms&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;[group1]
REGEX = (?&amp;lt;group1&amp;gt;.+\s\-\s\-\s\-\s).*.auditID.:.(?&amp;lt;group2&amp;gt;[\w-]+)..*requestURI.:.(?&amp;lt;group3&amp;gt;[^,]+).+username.:.(?&amp;lt;group4&amp;gt;[^,]+).+sourceIPs....(?&amp;lt;group5&amp;gt;\d+.\d+.\d+.\d+)
FORMAT = group1::$1, group2::$2, group5::$3, group3::$4, group4::$5&lt;/LI-CODE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Did I forget something in the conf files?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Alessandro&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 11:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/678947#M113463</guid>
      <dc:creator>asabatini</dc:creator>
      <dc:date>2024-02-28T11:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: rebuild a syslog event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/679228#M113501</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256242"&gt;@asabatini&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I think the problem is name-capturing groups in REGEX. Using name-capturing groups will already create a field without a FORMAT parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try one of the below options;&lt;/P&gt;&lt;P&gt;Using name-capturing groups in REGEX;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[group1]
REGEX = (?&amp;lt;group1&amp;gt;.+\s\-\s\-\s\-\s).*.auditID.:.(?&amp;lt;group2&amp;gt;[\w-]+)..*requestURI.:.(?&amp;lt;group4&amp;gt;[^,]+).+username.:.(?&amp;lt;group5&amp;gt;[^,]+).+sourceIPs....(?&amp;lt;group3&amp;gt;\d+.\d+.\d+.\d+)&lt;/LI-CODE&gt;&lt;P&gt;Without name-capturing groups in REGEX;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[group1]
REGEX = (.+\s\-\s\-\s\-\s).*.auditID.:.([\w-]+)..*requestURI.:.([^,]+).+username.:.([^,]+).+sourceIPs....(\d+.\d+.\d+.\d+)
FORMAT = group1::$1, group2::$2, group5::$3, group3::$4, group4::$5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 05:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/679228#M113501</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2024-03-01T05:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: rebuild a syslog event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/679269#M113514</link>
      <description>&lt;P&gt;Hi Alessandro.&lt;/P&gt;&lt;P&gt;If that's your actual copy-pasted excerpt from props.conf you have&lt;/P&gt;&lt;PRE&gt;transforms-rebuild = group1&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;TRANSFORMS-rebuild = group1&lt;/PRE&gt;&lt;P&gt;(yes, case does matter here)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 11:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rebuild-a-syslog-event/m-p/679269#M113514</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-03-01T11:48:32Z</dc:date>
    </item>
  </channel>
</rss>

