<?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 not extracting host in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Regex-not-extracting-host/m-p/686069#M3014</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/95912"&gt;@abhi04&lt;/a&gt;&amp;nbsp;Hello Abhi, Please use the below regex.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snip20240501_1.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30616iDB13BA651717A99C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snip20240501_1.png" alt="Snip20240501_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Does my answer above solve your question? If yes, spare a moment to accept the answer and vote for it. Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 14:52:38 GMT</pubDate>
    <dc:creator>kiran_panchavat</dc:creator>
    <dc:date>2024-05-01T14:52:38Z</dc:date>
    <item>
      <title>Regex not extracting host</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Regex-not-extracting-host/m-p/686058#M3012</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;our regex is unable to extract host from the logs, can you pleas ehelp with the correct regex.though this regex works when checked in regex101, not sure why unable to extract&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[hostextract]&lt;BR /&gt;REGEX = ^.*\w+\s+\d+\s+(?:\d+:){2}\d+\s+(?P&amp;lt;test&amp;gt;\w+)\s+&lt;BR /&gt;SOURCE_KEY = _raw&lt;BR /&gt;DEST_KEY = MetaData:Host&lt;BR /&gt;FORMAT = host::$1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. logs format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May 1 08:35:30 10.98.6.249 May 1 08:35:30 host_abc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apr 10 08:45:20 10.98.6.249 Apr 10 08:45:20 host_def&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May 1 08:35:30 10.98.6.249 May 1 08:35:30 host_ghi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Regex-not-extracting-host/m-p/686058#M3012</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2024-05-01T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex not extracting host</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Regex-not-extracting-host/m-p/686060#M3013</link>
      <description>&lt;P&gt;The starting format of logs in regex101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abhi04_0-1714569822025.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30614i7F92606584C07B1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abhi04_0-1714569822025.png" alt="abhi04_0-1714569822025.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Regex-not-extracting-host/m-p/686060#M3013</guid>
      <dc:creator>abhi04</dc:creator>
      <dc:date>2024-05-01T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regex not extracting host</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Regex-not-extracting-host/m-p/686069#M3014</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/95912"&gt;@abhi04&lt;/a&gt;&amp;nbsp;Hello Abhi, Please use the below regex.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snip20240501_1.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30616iDB13BA651717A99C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snip20240501_1.png" alt="Snip20240501_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Does my answer above solve your question? If yes, spare a moment to accept the answer and vote for it. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 14:52:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Regex-not-extracting-host/m-p/686069#M3014</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2024-05-01T14:52:38Z</dc:date>
    </item>
  </channel>
</rss>

