<?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: Why is a value appearing twice in a table but only occurs once in the event data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/539352#M152541</link>
    <description>&lt;P&gt;i couldn't agree more&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 19:55:13 GMT</pubDate>
    <dc:creator>aa70627</dc:creator>
    <dc:date>2021-02-10T19:55:13Z</dc:date>
    <item>
      <title>Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268392#M80727</link>
      <description>&lt;P&gt;I'm running a very simple search to draw a table.  One of the values returned is appearing twice in the table, but only occurs once in the event data.  Is this a bug?&lt;/P&gt;

&lt;P&gt;Here is the search string;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=* host=serverhostname EventCode=33205 | table ComputerName, statement
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result in the table is the value for 'statement' appears twice.  I get two events returned, with two lines each but only the 'statement' value is doubled.  All other fields are blank on the second line.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2054i6CF1C58617DFAA2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here is the event data that is being queried;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/17/2016 12:20:25 PM
LogName=Application
SourceName=MSSQL$OTPMSSQL
EventCode=33205
EventType=0
Type=Information
ComputerName=HOSTNAME.FQDN
TaskCategory=None
OpCode=None
RecordNumber=904492
Keywords=Audit Success, Classic
Message=Audit event: event_time:2016-10-17 16:20:24.1512330
sequence_number:1
action_id:AL  
succeeded:true
permission_bitmask:0
is_column_permission:false
session_id:136
server_principal_id:276
database_principal_id:1
target_server_principal_id:0
target_database_principal_id:0
object_id:8
class_type:DB
session_server_principal_name:DOMAIN\USERID
server_principal_name:DOMAIN\USERID
server_principal_sid:010500000000000515000000093a2a2426761e2f43170a326b1e0000
database_principal_name:dbo
target_server_principal_name:
target_server_principal_sid:
target_database_principal_name:
server_instance_name:SERVERNAME\OTPMSSQL
database_name:DBA
schema_name:
object_name:DBA
statement:ALTER DATABASE [DBA] MODIFY FILE ( NAME = N'DBA_log', FILEGROWTH = 1048576KB )
additional_information:
.
Collapse
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Oct 2016 14:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268392#M80727</guid>
      <dc:creator>rob_gibson</dc:creator>
      <dc:date>2016-10-21T14:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268393#M80728</link>
      <description>&lt;P&gt;Seems like those field have been extracted twice by Splunk making it a multivalued field. Check your props.conf for the sourcetype to see if there are two configuration setup for field extraction.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 15:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268393#M80728</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-21T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268394#M80729</link>
      <description>&lt;P&gt;Thank you!  That put me on the right track.  I used nomv to eliminate the multivalue.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* ComputerName="serverhostname" EventCode=33205 | nomv statement | table ComputerName, statement
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Oct 2016 16:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268394#M80729</guid>
      <dc:creator>rob_gibson</dc:creator>
      <dc:date>2016-10-21T16:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268395#M80730</link>
      <description>&lt;P&gt;Another option would be this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* ComputerName="serverhostname" EventCode=33205  | table ComputerName, statement | eval statement=mvindex(statement,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Oct 2016 17:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268395#M80730</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-21T17:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268396#M80731</link>
      <description>&lt;P&gt;Hi @rob.gibson - Did this search that you posted help to resolve your issue?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 02:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268396#M80731</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2016-10-24T02:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268397#M80732</link>
      <description>&lt;P&gt;Yes, specifically adding "| nomv statement |" corrected the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268397#M80732</guid>
      <dc:creator>rob_gibson</dc:creator>
      <dc:date>2016-10-24T19:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268398#M80733</link>
      <description>&lt;P&gt;Not sure if your data is coming in JSON or not, but I've seen the same issue with KV extractions with JSON. I had to add a local props.conf with the below stanza to the SH to resolve. This disabled the KV_MODE config on the SH.&lt;BR /&gt;&lt;BR /&gt;
        [source::foo]&lt;BR /&gt;
        KV_MODE = NONE&lt;BR /&gt;
You can disable the KV_MODE on either the SH or the forwarder. Disabling on the forwarder will use search-time extractions, disabling on SH will use index-time extractions. &lt;BR /&gt;
Again, not sure if your data is JSON or not, but hope this helps. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/268398#M80733</guid>
      <dc:creator>jbillings</dc:creator>
      <dc:date>2020-09-30T02:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/529290#M149468</link>
      <description>&lt;P&gt;This answer helped me more then the answer marked as solution.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 13:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/529290#M149468</guid>
      <dc:creator>tomaskucerak</dc:creator>
      <dc:date>2020-11-13T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/539352#M152541</link>
      <description>&lt;P&gt;i couldn't agree more&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 19:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/539352#M152541</guid>
      <dc:creator>aa70627</dc:creator>
      <dc:date>2021-02-10T19:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a value appearing twice in a table but only occurs once in the event data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/744725#M241301</link>
      <description>&lt;P&gt;This worked for me! The other 2 above did not for some reason. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 21:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-value-appearing-twice-in-a-table-but-only-occurs-once/m-p/744725#M241301</guid>
      <dc:creator>mystic_warrior</dc:creator>
      <dc:date>2025-04-22T21:44:33Z</dc:date>
    </item>
  </channel>
</rss>

