<?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: Extract key=value into field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-key-value-into-field/m-p/746384#M118632</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/270146"&gt;@splunkville&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, this will not work because the source key (cmd_data) contains the shortened version which has been broken up due to the space.&lt;/P&gt;&lt;P&gt;Your transforms.conf and props.conf configs need adjustment. To extract the full value after cmd_data=, use this in transforms.conf:&lt;/P&gt;&lt;PRE&gt;==&amp;nbsp;props.conf&amp;nbsp;==&lt;BR /&gt;[yourSourceytype]&lt;BR /&gt;REPORT-full_cmd = full_cmd&lt;BR /&gt;&lt;BR /&gt;==&amp;nbsp;transforms.conf&amp;nbsp;==&lt;BR /&gt;[full_cmd]&lt;BR /&gt;REGEX = cmd_data=([^\]]+)\]&lt;BR /&gt;FORMAT = full_cmd::$1&lt;/PRE&gt;&lt;P&gt;The REGEX captures everything after cmd_data= up to the "]".&amp;nbsp;&lt;BR /&gt;&amp;nbsp;REPORT- in props.conf applies the transform at search time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Did this answer help you?&lt;SPAN&gt;&amp;nbsp;If so, please consider:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Sat, 17 May 2025 01:09:04 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-05-17T01:09:04Z</dc:date>
    <item>
      <title>Extract key=value into field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-key-value-into-field/m-p/746383#M118631</link>
      <description>&lt;P&gt;[cmd_data=list cm device recusive]&lt;/P&gt;&lt;P&gt;splunk&amp;nbsp;&lt;SPAN&gt;auto extracts just [cmd_data=list]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End result - be able to filter on cmd data and get the full cmd / mutiple values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will these configs work?&lt;BR /&gt;&lt;BR /&gt;transforms.conf&lt;BR /&gt;[full_cmd]&lt;BR /&gt;SOURCE_KEY = cmd_data&lt;BR /&gt;REGEX = (cmd_data)\S(?&amp;lt;full_cmd&amp;gt;.*)&lt;BR /&gt;FORMAT = full_cmd::$1&lt;/P&gt;&lt;P&gt;props.conf&lt;BR /&gt;EXTRACT-field full_cmd&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 23:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-key-value-into-field/m-p/746383#M118631</guid>
      <dc:creator>splunkville</dc:creator>
      <dc:date>2025-05-16T23:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract key=value into field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-key-value-into-field/m-p/746384#M118632</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/270146"&gt;@splunkville&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, this will not work because the source key (cmd_data) contains the shortened version which has been broken up due to the space.&lt;/P&gt;&lt;P&gt;Your transforms.conf and props.conf configs need adjustment. To extract the full value after cmd_data=, use this in transforms.conf:&lt;/P&gt;&lt;PRE&gt;==&amp;nbsp;props.conf&amp;nbsp;==&lt;BR /&gt;[yourSourceytype]&lt;BR /&gt;REPORT-full_cmd = full_cmd&lt;BR /&gt;&lt;BR /&gt;==&amp;nbsp;transforms.conf&amp;nbsp;==&lt;BR /&gt;[full_cmd]&lt;BR /&gt;REGEX = cmd_data=([^\]]+)\]&lt;BR /&gt;FORMAT = full_cmd::$1&lt;/PRE&gt;&lt;P&gt;The REGEX captures everything after cmd_data= up to the "]".&amp;nbsp;&lt;BR /&gt;&amp;nbsp;REPORT- in props.conf applies the transform at search time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Did this answer help you?&lt;SPAN&gt;&amp;nbsp;If so, please consider:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 17 May 2025 01:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-key-value-into-field/m-p/746384#M118632</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-17T01:09:04Z</dc:date>
    </item>
  </channel>
</rss>

