<?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: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643600#M52567</link>
    <description>&lt;P&gt;Please share what you actually tried&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 10:10:28 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-05-17T10:10:28Z</dc:date>
    <item>
      <title>How to extract %utilization value from the raw field or message field using rex command and add it as field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643561#M52554</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dataframe row : {"_c0":{"0":null,"1":"00:00:01","2":"13:30:01"},"_c1":{"0":null,"1":"CPU","2":"all"},"_c2":{"0":"Linux","1":"%user","2":"1.05"},"_c3":{"0":"3.10.0-1160.76.1.el7.x86_64","1":"%nice","2":"0.34"},"_c4":{"0":"(fraasdwhbdd1.de.db.com)","1":"%system","2":"0.83"},"_c5":{"0":"16\/05\/23","1":"%iowait","2":"0.05"},"_c6":{"0":"_x86_64_","1":"%steal","2":"0.00"},"_c7":{"0":"(8","1":"%idle","2":"97.73"},"_c8":{"0":"CPU)","1":"%utilization","2":"2.27"}}.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The above event is a sample event that has been received to our splunk portal. We need to extract the %utilization value from the above event which is the value of 2.27. This %utilization value is dynamic. we need to extract it using rex command. Please help us on this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 13:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643561#M52554</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-05-17T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643563#M52555</link>
      <description>&lt;P&gt;Also the mentioned above value is Dynamic and that 2.27% value sometimes may reach up to 99.90%. Please help us in how to extract the above value and add it as a separate field.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 06:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643563#M52555</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-05-17T06:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643564#M52556</link>
      <description>&lt;LI-CODE lang="markup"&gt;%utilization\",.+:\"(?&amp;lt;utilization&amp;gt;[\d\.]+)&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/940BeR/1" target="_blank"&gt;https://regex101.com/r/940BeR/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 06:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643564#M52556</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643569#M52557</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I tried using the given command, but I am facing an error like below. Please help us on this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_0-1684307596565.png" style="width: 697px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25408iAD4A305CD906B3AA/image-dimensions/697x258?v=v2" width="697" height="258" role="button" title="Renunaren_0-1684307596565.png" alt="Renunaren_0-1684307596565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help us on the above thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 07:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643569#M52557</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-05-17T07:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643573#M52558</link>
      <description>&lt;P&gt;Try removing the / at the beginning of the rex (did you get this from regex101.com as this was not in the expression I shared?)&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 07:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643573#M52558</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T07:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643577#M52559</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;I have tried by removing the / at the rex, but it is showing the same error like below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_1-1684309672874.png" style="width: 588px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25410i4BD23E6727AEE3D5/image-dimensions/588x199?v=v2" width="588" height="199" role="button" title="Renunaren_1-1684309672874.png" alt="Renunaren_1-1684309672874.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I request you to kindly look into this and help us on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 07:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643577#M52559</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-05-17T07:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643581#M52561</link>
      <description>&lt;P&gt;Put the expression in quotes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "%utilization\",.+:\"(?&amp;lt;utilization&amp;gt;[\d\.]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 May 2023 08:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643581#M52561</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T08:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643584#M52562</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;Thanks this has worked for the extraction of Utilization Value. But when I tried to extract the other fields such as %idle of value 97.73 or the %user value I am not able to extract using the same method. Can I get the reason please.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 09:26:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643584#M52562</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-05-17T09:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643589#M52565</link>
      <description>&lt;P&gt;Please share the extraction (in a code block &amp;lt;/&amp;gt; not an image) of the failing extraction commands&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 09:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643589#M52565</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T09:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643597#M52566</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;Thanks for your email. Below is the code in which I am trying to extract %idle, %user, %steal, %nice, %system, %iowait values and add them as a separate fields.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dataframe row : {"_c0":{"0":null,"1":"00:00:01","2":"13:30:01"},"_c1":{"0":null,"1":"CPU","2":"all"},"_c2":{"0":"Linux","1":"%user","2":"1.05"},"_c3":{"0":"3.10.0-1160.76.1.el7.x86_64","1":"%nice","2":"0.34"},"_c4":{"0":"(fraasdwhbdd1.de.db.com)","1":"%system","2":"0.83"},"_c5":{"0":"16\/05\/23","1":"%iowait","2":"0.05"},"_c6":{"0":"_x86_64_","1":"%steal","2":"0.00"},"_c7":{"0":"(8","1":"%idle","2":"97.73"},"_c8":{"0":"CPU)","1":"%utilization","2":"2.27"}}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help us on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried to extract those values using the same method which was done earlier for extracting the utilization, but it was not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 10:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643597#M52566</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-05-17T10:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643600#M52567</link>
      <description>&lt;P&gt;Please share what you actually tried&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 10:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643600#M52567</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T10:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643611#M52569</link>
      <description>&lt;P&gt;I have tried the below command to extract the % idle value in the sample event&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="app_events_dwh2_de_int" (_raw=*cpu*) OR (_raw=*kbswp*) | rex ": %idle\",.+:\"(?&amp;lt;idle&amp;gt;[\d\.]+)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dataframe row : {"_c0":{"0":null,"1":"00:00:01","2":"13:30:01"},"_c1":{"0":null,"1":"CPU","2":"all"},"_c2":{"0":"Linux","1":"%user","2":"1.05"},"_c3":{"0":"3.10.0-1160.76.1.el7.x86_64","1":"%nice","2":"0.34"},"_c4":{"0":"(fraasdwhbdd1.de.db.com)","1":"%system","2":"0.83"},"_c5":{"0":"16\/05\/23","1":"%iowait","2":"0.05"},"_c6":{"0":"_x86_64_","1":"%steal","2":"0.00"},"_c7":{"0":"(8","1":"%idle","2":"97.73"},"_c8":{"0":"CPU)","1":"%utilization","2":"2.27"}}.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 11:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643611#M52569</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-05-17T11:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of %utilization value from the raw field or message field using rex command and add it as fi</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643615#M52570</link>
      <description>&lt;P&gt;Your expression doesn't match your event because you have introduced a space instead of a \" between the : and %idle&lt;/P&gt;&lt;P&gt;Regex work by matching to anchor text; if the anchor text is not correct, the match (and extraction) doesn't work.&lt;/P&gt;&lt;P&gt;Please examine your expressions and data carefully.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 11:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-extract-utilization-value-from-the-raw-field-or-message/m-p/643615#M52570</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T11:39:19Z</dc:date>
    </item>
  </channel>
</rss>

