<?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: Discover fields that have the same values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653259#M225766</link>
    <description>&lt;P&gt;I do not think there is an easy solution for this.&amp;nbsp; What you can do is to examine your data and set field alias so that thy will respond to same field name&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 17:50:17 GMT</pubDate>
    <dc:creator>jotne</dc:creator>
    <dc:date>2023-08-04T17:50:17Z</dc:date>
    <item>
      <title>How to discover fields that have the same values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653244#M225761</link>
      <description>&lt;P&gt;I have sourcetype=apple and sourcetype=orange. They are both network related sourcetypes. Is there an automated way of finding redundancies in the two (or more) sourcetypes? For instance apple has "sip" and orange has "sourceip". I want to automate the discovery of the redundant fields. While I don't know how to do this, I had considered flipping the values and fields such that a result might look like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;value&lt;/TD&gt;
&lt;TD width="50%"&gt;field&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;12.23.34.45&lt;/TD&gt;
&lt;TD width="50%"&gt;
&lt;P&gt;apple-sip&lt;/P&gt;
&lt;P&gt;orange-sourceip&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I am open to anything that accomplishes the goal of auto-discovering redundant fields across multiple sourcetypes. I thought foreach * might possible do the trick as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 19:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653244#M225761</guid>
      <dc:creator>automayt</dc:creator>
      <dc:date>2023-08-07T19:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653255#M225764</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/193380"&gt;@automayt&lt;/a&gt;&amp;nbsp;- You can try the &lt;STRONG&gt;fieldsummary&lt;/STRONG&gt; command to get summary of fields you are getting including common values.&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/fieldsummary" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/fieldsummary&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you could run it over multiple sourcetypes with map command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval sourcetype="abc"
| append [| makeresults | eval sourcetype="xyz"]

| map search="index=* sourcetype=$sourcetype|s$ | fieldsummary | eval sourcetype=$sourcetype|s$"
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a starting point, and I hope you get to take it to the next level.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 17:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653255#M225764</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-08-04T17:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653258#M225765</link>
      <description>&lt;P&gt;You may want to clarify the conditions and logic more, maybe illustrate your data and desired output, too.&lt;/P&gt;&lt;P&gt;For example, given that apple and orange are different sourcetypes, you could have data like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;dip&lt;/TD&gt;&lt;TD&gt;sip&lt;/TD&gt;&lt;TD&gt;sourceip&lt;/TD&gt;&lt;TD&gt;sourcetype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;23.34.45.56&lt;/TD&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23.34.45.56&lt;/TD&gt;&lt;TD&gt;45.56.67.89&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Here, dip contains all values in sourceip, while sip contains partial overlap. &amp;nbsp;What is your intention with this dataset?&lt;/P&gt;&lt;P&gt;Here is an emulation for this dataset. &amp;nbsp;You may want to play with it and compare with your real data, and give us a realistic illustration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval sourcetype="orange", sourceip = mvappend("12.23.34.45", "23.34.45.56")
| mvexpand sourceip
| append 
    [makeresults
    | eval sourcetype="apple", sip = mvappend(json_object("sip", "12.23.34.45", "dip", "12.23.34.45"), json_object("sip", "45.56.67.89", "dip", "23.34.45.56"))
    | mvexpand sip
    | fromjson sip]
``` the above emulates data, only runs in Splunk 8 or later ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 17:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653258#M225765</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-08-04T17:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653259#M225766</link>
      <description>&lt;P&gt;I do not think there is an easy solution for this.&amp;nbsp; What you can do is to examine your data and set field alias so that thy will respond to same field name&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 17:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653259#M225766</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2023-08-04T17:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653280#M225771</link>
      <description>&lt;P&gt;Thanks for the ideas so far. I will clarify more. Lets say I have the following data that I am certain represents the same communication (orange is a device that sees traffic and apple is another device, I have confirmed that it is the identical communication, but they log differently).&amp;nbsp;&lt;/P&gt;&lt;TABLE width="453px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="87.5156px" height="25px"&gt;destip&lt;/TD&gt;&lt;TD width="40.6719px" height="25px"&gt;vlan&lt;/TD&gt;&lt;TD width="87.5156px" height="25px"&gt;dip&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;sip&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;sourceip&lt;/TD&gt;&lt;TD width="92.7812px" height="25px"&gt;sourcetype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="87.5156px" height="25px"&gt;5.6.7.8&lt;/TD&gt;&lt;TD width="40.6719px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="87.5156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;12.23.34.45&lt;/TD&gt;&lt;TD width="92.7812px" height="25px"&gt;orange&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="87.5156px" height="25px"&gt;5.22.66.11&lt;/TD&gt;&lt;TD width="40.6719px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="87.5156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;45.56.67.89&lt;/TD&gt;&lt;TD width="92.7812px" height="25px"&gt;orange&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="87.5156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="40.6719px" height="25px"&gt;111&lt;/TD&gt;&lt;TD width="87.5156px" height="25px"&gt;5.6.7.8&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;12.23.34.45&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="92.7812px" height="25px"&gt;apple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="87.5156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="40.6719px" height="25px"&gt;111&lt;/TD&gt;&lt;TD width="87.5156px" height="25px"&gt;5.22.66.11&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;45.56.67.89&lt;/TD&gt;&lt;TD width="97.125px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="92.7812px" height="25px"&gt;apple&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can look at this and say "oh, they are the same traffic but it looks like orange and apple use a different taxonomy! I will combine sourceip and sip into src_ip. I will combine destip and dip into dest_ip!". I want to do this programatically without having to manually identify the common fields. Using JSON or something, I could transpose the values and the fields and say "show me the listing of the fields BY the values. Programmatically my result would look something akin to the following with a transpose;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;45.56.67.89&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;12.23.34.45&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="25px"&gt;5.22.66.11&lt;/TD&gt;&lt;TD width="8.333333333333334%" height="25px"&gt;5.6.7.8&lt;/TD&gt;&lt;TD width="8.333333333333334%" height="25px"&gt;111&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="77px"&gt;&lt;P&gt;sourceip&lt;/P&gt;&lt;P&gt;sip&lt;/P&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="77px"&gt;&lt;P&gt;sourceip&lt;/P&gt;&lt;P&gt;sip&lt;/P&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="77px"&gt;&lt;P&gt;destip&lt;/P&gt;&lt;P&gt;dip&lt;/P&gt;&lt;/TD&gt;&lt;TD width="8.333333333333334%" height="77px"&gt;&lt;P&gt;destip&lt;/P&gt;&lt;P&gt;dip&lt;/P&gt;&lt;/TD&gt;&lt;TD width="8.333333333333334%" height="77px"&gt;vlan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="77px"&gt;&lt;P&gt;orange&lt;/P&gt;&lt;P&gt;apple&lt;/P&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="77px"&gt;&lt;P&gt;orange&lt;/P&gt;&lt;P&gt;apple&lt;/P&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="77px"&gt;&lt;P&gt;&amp;nbsp;orange&lt;/P&gt;&lt;P&gt;apple&lt;/P&gt;&lt;/TD&gt;&lt;TD width="8.333333333333334%" height="77px"&gt;&lt;P&gt;orange&lt;/P&gt;&lt;P&gt;apple&lt;/P&gt;&lt;/TD&gt;&lt;TD width="8.333333333333334%" height="77px"&gt;apple&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Admittedly that wouldn't be the prettiest version of the result, but it would get the job done. Any version of that result (one that says "here are redundant field names from semi-redundant sources) that lists the fields and their sourcetypes) would work.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653280#M225771</guid>
      <dc:creator>automayt</dc:creator>
      <dc:date>2023-08-04T20:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653285#M225774</link>
      <description>&lt;P&gt;This ended up getting the job done, but it still doesn't reference the sourcetype automagically. I'm aware I could use header_name=sourcetype to change row 1 and row 2, but ended up going with this for more general ease for someone following.&lt;/P&gt;&lt;PRE&gt;index=fruit sourcetype IN ("apple","orange")&lt;BR /&gt;| transpose&lt;BR /&gt;| eval allvalues=mvappend('row 1', 'row 2') &lt;BR /&gt;| stats dc(column) AS dc_column values(column) AS columns BY allvalues &lt;BR /&gt;| where dc_column&amp;gt;1&lt;/PRE&gt;&lt;P&gt;This flips the column names into a value, and then if 2 or more columns match the same value, it will suggest that they might be duplicates and list the duplicate fields.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 21:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653285#M225774</guid>
      <dc:creator>automayt</dc:creator>
      <dc:date>2023-08-04T21:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653302#M225777</link>
      <description>&lt;P&gt;I'm glad you found a method that fit your need. &amp;nbsp;Would you mind explain the actual logic? &amp;nbsp;Does this mean that any match would be considered duplicates? &amp;nbsp;Or are you just trying to fish out duplicate &lt;EM&gt;candidates&lt;/EM&gt;? &amp;nbsp;Note this method depends a lot on how closely events from the two sourcetypes are mingled from index search returns, which is a factor that you have little control.&lt;/P&gt;&lt;P&gt;Here is a demo with my emulation, i.e.,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;dip&lt;/TD&gt;&lt;TD&gt;sip&lt;/TD&gt;&lt;TD&gt;sourceip&lt;/TD&gt;&lt;TD&gt;sourcetype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;23.34.45.56&lt;/TD&gt;&lt;TD&gt;orange&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23.34.45.56&lt;/TD&gt;&lt;TD&gt;45.56.67.89&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apple&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;First, direct application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval sourcetype="orange", sourceip = mvappend("12.23.34.45", "23.34.45.56")
| mvexpand sourceip
| append 
    [makeresults
    | eval sourcetype="apple", sip = mvappend(json_object("sip", "12.23.34.45", "dip", "12.23.34.45"), json_object("sip", "45.56.67.89", "dip", "23.34.45.56"))
    | mvexpand sip
    | fromjson sip]
``` the above emulates
index=fruit sourcetype IN ("apple","orange")
```
| transpose
| eval allvalues=mvappend('row 1', 'row 2') 
| stats dc(column) AS dc_column values(column) AS columns BY allvalues 
| where dc_column&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives no output.&lt;/P&gt;&lt;P&gt;That's because the events that match are separated too "far" away by events that do not. &amp;nbsp;Extend to row 3 and row 4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval sourcetype="orange", sourceip = mvappend("12.23.34.45", "23.34.45.56")
| mvexpand sourceip
| append 
    [makeresults
    | eval sourcetype="apple", sip = mvappend(json_object("sip", "12.23.34.45", "dip", "12.23.34.45"), json_object("sip", "45.56.67.89", "dip", "23.34.45.56"))
    | mvexpand sip
    | fromjson sip]
``` the above emulates
index=fruit sourcetype IN ("apple","orange")
```
| transpose
| eval allvalues=mvappend('row 1', 'row 2', 'row 3', 'row 4') 
| stats dc(column) AS dc_column values(column) AS columns BY allvalues 
| where dc_column&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;allvalues&lt;/TD&gt;&lt;TD&gt;dc_column&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;columns&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;dip&lt;/DIV&gt;&lt;DIV class=""&gt;sip&lt;/DIV&gt;&lt;DIV class=""&gt;sourceip&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23.34.45.56&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;dip&lt;/DIV&gt;&lt;DIV class=""&gt;sourceip&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;A more robust way to do this &amp;nbsp;would be to put all values in one row with stats, i.e.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields - sourcetype
| stats values(*) as *
| transpose
| rename "row 1" as ip
| stats values(column) as fieldname by ip
| where mvcount(fieldname) &amp;gt; 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the same emulation, the output would still be&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ip&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;fieldname&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12.23.34.45&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;dip&lt;/DIV&gt;&lt;DIV class=""&gt;sip&lt;/DIV&gt;&lt;DIV class=""&gt;sourceip&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23.34.45.56&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;dip&lt;/DIV&gt;&lt;DIV class=""&gt;sourceip&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;but the order and interleave of events no longer matter. &amp;nbsp;Additionally, there will be fewer rows to transpose, reducing cost.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2023 06:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653302#M225777</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-08-05T06:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653779#M225946</link>
      <description>&lt;P&gt;Your final solution is not only scales to more situations, but doesn't force it to be a 2 sourcetype situation. Thank you. This mostly satisfies everything (although i'd be great to know the sourcetype with the field in the lists, but that is probably impractical). TLDR, here was&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;solution that is better than mine.&lt;/P&gt;&lt;PRE&gt;search_here_that_has_two_or_more_sourcetypes&lt;BR /&gt;| fields - sourcetype&lt;BR /&gt;| stats values(*) as *&lt;BR /&gt;| transpose&lt;BR /&gt;| rename "row 1" as ip&lt;BR /&gt;| stats values(column) as fieldname by ip&lt;BR /&gt;| where mvcount(fieldname) &amp;gt; 1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 17:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653779#M225946</guid>
      <dc:creator>automayt</dc:creator>
      <dc:date>2023-08-09T17:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Discover fields that have the same values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653852#M225968</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;to know the sourcetype with the field in the lists,&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I haven't found a scalable method to do this. &amp;nbsp;But if&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;combinations&amp;nbsp;of sourcetypes and fields of interest are few and known, and&lt;/LI&gt;&lt;LI&gt;there is no identical field name in different sourcetypes,&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;you can rename each field to contain info about its sourcetype.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 07:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-discover-fields-that-have-the-same-values/m-p/653852#M225968</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-08-10T07:18:28Z</dc:date>
    </item>
  </channel>
</rss>

