<?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 to rex field number of infected file for clamav scan report? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299349#M160264</link>
    <description>&lt;P&gt;I believe an additional dot at the end of your regex (after &lt;CODE&gt;\d+&lt;/CODE&gt;) is causing your field extractions to fail. Use exact regex given by cpetterborg.&lt;/P&gt;

&lt;P&gt;Also, when you post code/search, do remember to (after selecting the code/search) click on &lt;CODE&gt;101010&lt;/CODE&gt; button or press Ctrl+K to format it, else, you'll lose special characters like capturing groups.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 16:15:53 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-07-10T16:15:53Z</dc:date>
    <item>
      <title>how to rex field number of infected file for clamav scan report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299347#M160262</link>
      <description>&lt;P&gt;Jul 10 06:59:22 icopenstack01 clamav[9040]: Infected files: 0&lt;BR /&gt;
source =    /var/log/remote/icopenstack01.log sourcetype =  icopenstack-too_small&lt;/P&gt;

&lt;P&gt;how to rex field the number after Infected files: &lt;/P&gt;

&lt;P&gt;"Infected files:"   | rex field=_raw "Infected files: (?\d+.)" | convert timeformat="%Y-%m-%d" ctime(_time) AS date  | table source, date, Infected | where date=strftime(now(), "%Y-%m-%d")&lt;/P&gt;

&lt;P&gt;i use this query but Infected field is empty&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299347#M160262</guid>
      <dc:creator>cyberportnoc</dc:creator>
      <dc:date>2020-09-29T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to rex field number of infected file for clamav scan report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299348#M160263</link>
      <description>&lt;P&gt;You need to name the field you extracted &lt;CODE&gt;(?P&amp;lt;Infected&amp;gt;\d+)&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Infected files:" | rex field=_raw "Infected files: (?P&amp;lt;Infected&amp;gt;\d+)" | convert timeformat="%Y-%m-%d" ctime(_time) AS date | table source, date, Infected | where date=strftime(now(), "%Y-%m-%d")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:23:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299348#M160263</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-07-10T15:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to rex field number of infected file for clamav scan report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299349#M160264</link>
      <description>&lt;P&gt;I believe an additional dot at the end of your regex (after &lt;CODE&gt;\d+&lt;/CODE&gt;) is causing your field extractions to fail. Use exact regex given by cpetterborg.&lt;/P&gt;

&lt;P&gt;Also, when you post code/search, do remember to (after selecting the code/search) click on &lt;CODE&gt;101010&lt;/CODE&gt; button or press Ctrl+K to format it, else, you'll lose special characters like capturing groups.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299349#M160264</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-10T16:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to rex field number of infected file for clamav scan report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299350#M160265</link>
      <description>&lt;P&gt;"Infected files:" | rex field=_raw "Infected files: (?\d*)" | convert timeformat="%Y-%m-%d" ctime(_time) AS date  | table source, date, Infected | where date=strftime(now(), "%Y-%m-%d")&lt;/P&gt;

&lt;P&gt;after tried many times, discover d* can solve this&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-rex-field-number-of-infected-file-for-clamav-scan-report/m-p/299350#M160265</guid>
      <dc:creator>cyberportnoc</dc:creator>
      <dc:date>2020-09-29T14:49:58Z</dc:date>
    </item>
  </channel>
</rss>

