<?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 How do I remove fields from VMWare Add-on before indexing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416013#M73509</link>
    <description>&lt;P&gt;I'm currently receiving an excess amount of data from the VMWare app sample below and would like to only keep a few of the fields before being indexed. Is there a way to do this?&lt;/P&gt;

&lt;P&gt;_raw: vm-1111   501170cc-8439-1cb3-04ba-8dc34434b33c    4001    20  0   0   0   0   0   0   0   21  0   0   0   0   21&lt;BR /&gt;
&lt;STRONG&gt;Field Extractions:&lt;/STRONG&gt;&lt;BR /&gt;
p_average_net_bytesRx_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_average_net_bytesTx_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_average_net_received_kiloBytesPerSecond 0 &lt;BR /&gt;
p_average_net_transmitted_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_average_net_usage_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_broadcastRx_number 21&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_broadcastTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedRx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_multicastRx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_multicastTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_packetsRx_number 21 &lt;BR /&gt;
p_summation_net_packetsTx_number 0&lt;/P&gt;

&lt;P&gt;I'm looking to only keep these fields before being indexed  (for example)&lt;/P&gt;

&lt;P&gt;p_average_net_received_kiloBytesPerSecond 0 &lt;BR /&gt;
p_average_net_transmitted_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedRx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_packetsRx_number 21 &lt;BR /&gt;
p_summation_net_packetsTx_number 0&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:40:29 GMT</pubDate>
    <dc:creator>AdamHolmes</dc:creator>
    <dc:date>2020-09-29T19:40:29Z</dc:date>
    <item>
      <title>How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416013#M73509</link>
      <description>&lt;P&gt;I'm currently receiving an excess amount of data from the VMWare app sample below and would like to only keep a few of the fields before being indexed. Is there a way to do this?&lt;/P&gt;

&lt;P&gt;_raw: vm-1111   501170cc-8439-1cb3-04ba-8dc34434b33c    4001    20  0   0   0   0   0   0   0   21  0   0   0   0   21&lt;BR /&gt;
&lt;STRONG&gt;Field Extractions:&lt;/STRONG&gt;&lt;BR /&gt;
p_average_net_bytesRx_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_average_net_bytesTx_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_average_net_received_kiloBytesPerSecond 0 &lt;BR /&gt;
p_average_net_transmitted_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_average_net_usage_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_broadcastRx_number 21&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_broadcastTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedRx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_multicastRx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_multicastTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_packetsRx_number 21 &lt;BR /&gt;
p_summation_net_packetsTx_number 0&lt;/P&gt;

&lt;P&gt;I'm looking to only keep these fields before being indexed  (for example)&lt;/P&gt;

&lt;P&gt;p_average_net_received_kiloBytesPerSecond 0 &lt;BR /&gt;
p_average_net_transmitted_kiloBytesPerSecond 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedRx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_droppedTx_number 0&lt;BR /&gt;&lt;BR /&gt;
p_summation_net_packetsRx_number 21 &lt;BR /&gt;
p_summation_net_packetsTx_number 0&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416013#M73509</guid>
      <dc:creator>AdamHolmes</dc:creator>
      <dc:date>2020-09-29T19:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416014#M73510</link>
      <description>&lt;P&gt;You can route to nullqueue based on patterns in the events you want to drop:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The following would prevent any events with the string p_summation_net from getting indexed. &lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vmware:sourcetype]
TRANSFORMS-null = drop_p_avg, drop_p_summation
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[drop_p_avg]
REGEX = p_average_net_
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These would need to be placed on your indexers. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:40:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416014#M73510</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2020-09-29T19:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416015#M73511</link>
      <description>&lt;P&gt;Tried this approach, I created a test message (in JSON format for example)&lt;BR /&gt;
_raw: {"message": "Running ITBSA Common Module", "field1": "some text", "state": "OK"}&lt;/P&gt;

&lt;P&gt;On the Search Head / Indexer (my test system is a combined one)&lt;BR /&gt;
Updated file: /opt/splunk/etc/system/local/props.conf&lt;BR /&gt;
[common]&lt;BR /&gt;
TRANSFORMS-null = drop_message&lt;/P&gt;

&lt;P&gt;Update file: /opt/splunk/etc/system/local/transforms.conf&lt;BR /&gt;
[drop_message]&lt;BR /&gt;
REGEX = state&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;I restarted splunkd and now no data is coming in. &lt;/P&gt;

&lt;P&gt;On a forwarder I have this specified to create test data&lt;BR /&gt;
[script://./bin/common.py]&lt;BR /&gt;
source = monitoring::test&lt;BR /&gt;
sourcetype = common&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416015#M73511</guid>
      <dc:creator>AdamHolmes</dc:creator>
      <dc:date>2020-09-29T19:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416016#M73512</link>
      <description>&lt;P&gt;ALL messages, or just all messages of the sourcetype common?&lt;/P&gt;

&lt;P&gt;If ALL messages, not sure your issues.&lt;/P&gt;

&lt;P&gt;if messages of the sourcetype common is the issue, the problem could be your REGEX is matching more than expected. &lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 18:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416016#M73512</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-23T18:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416017#M73513</link>
      <description>&lt;P&gt;I need the raw input go from &lt;BR /&gt;
 {"message": "Running ITBSA Common Module", "field1": "some text", "state": "OK"}&lt;BR /&gt;
to&lt;BR /&gt;
 {"field1": "some text", "state": "OK"}&lt;/P&gt;

&lt;P&gt;from the specficied sourcetype. However, the catch is that the true data that is coming in does not fit that format it looks like a tab separated data&lt;BR /&gt;
_raw: vm-1111 501170cc-8439-1cb3-04ba-8dc34434b33c 4001 20 0 0 0 0 0 0 0 21 0 0 0 0 21&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 19:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416017#M73513</guid>
      <dc:creator>AdamHolmes</dc:creator>
      <dc:date>2018-05-23T19:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416018#M73514</link>
      <description>&lt;P&gt;I misunderstood, thought you were looking to get rid of the events, not the specific fields. &lt;/P&gt;

&lt;P&gt;If you want to get rid of specific fields, you probably want to look at SEDCMD- &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.0/Admin/Propsconf#Field_extraction_configuration"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.0/Admin/Propsconf#Field_extraction_configuration&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You should be able to use Sed like syntax to remove the unwanted data&lt;/P&gt;

&lt;P&gt;Something like:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[sourcetype]&lt;BR /&gt;
SEDCMD-removeunwanted1 = s/{[^:]+?:[^:]+?/{/&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 19:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416018#M73514</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-23T19:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416019#M73515</link>
      <description>&lt;P&gt;That's what I was leaning towards but as the data is 'tab' separated I was unsure on how the field extractions would handle that. I was hoping to specify just the field names to be excluded.&lt;BR /&gt;
Along with writing the regex would be just 'fun'&lt;BR /&gt;
Example data and would need to remove the bold (if I have to deal with raw data)&lt;BR /&gt;
vm-125620   5006a450-f3f4-3794-ecb7-a50b97a8bec4    vmnic5  20  0   0   0       0       &lt;STRONG&gt;0&lt;/STRONG&gt;   0               &lt;STRONG&gt;0&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
vm-1111 501170cc-8439-1cb3-04ba-8dc34434b33c    4000    20  58738   1108    &lt;STRONG&gt;1108&lt;/STRONG&gt;    0   379 0   &lt;STRONG&gt;379&lt;/STRONG&gt; 11612   0   0   0   1487    0&lt;BR /&gt;
vm-163268   5006d319-719a-d56c-3e3c-eb1cab4163de    aggregated  20  656 2   2   0   &lt;STRONG&gt;91&lt;/STRONG&gt;  0   91  1591    &lt;STRONG&gt;0&lt;/STRONG&gt;   0   0   94  60&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 19:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416019#M73515</guid>
      <dc:creator>AdamHolmes</dc:creator>
      <dc:date>2018-05-23T19:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416020#M73516</link>
      <description>&lt;P&gt;Assuming the field at the front is the VMware eventId...you might need to create one per eventId:&lt;/P&gt;

&lt;P&gt;SEDCMD-vm125620 = s/(vm-125620)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)/$1 $2 $3 $4 $5 $6 $7 $8 $10/&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 20:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416020#M73516</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-23T20:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove fields from VMWare Add-on before indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416021#M73517</link>
      <description>&lt;P&gt;Correction, should have used back references \1 instead of variables $1 in the SEDCMD:&lt;/P&gt;

&lt;P&gt;SEDCMD-vm125620 = s/(vm-125620)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)\s(\w)/\1 \2 \3 \4 \5 \6 \7 \8 \10/&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 20:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-remove-fields-from-VMWare-Add-on-before-indexing/m-p/416021#M73517</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2018-05-23T20:12:58Z</dc:date>
    </item>
  </channel>
</rss>

