<?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 Log Message formating question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Log-Message-formating-question/m-p/32467#M6769</link>
    <description>&lt;P&gt;I am trying create some new logging formats for some new data and I want to ensure it Splunk friendly, so I can do a lot of reporting on the data. The data is basic eCommerce information, such as a single order number and many item details. The problem is when I have multiple items for one order such as,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;order item   item quantity   item description
123   1       5              pencil
      2       3              dog food
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't get all of the values for each category, no matter the logging format that i try such as a table format to use the multikv command. multi&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;order Amount Delivery    Billing_Email    Trans_date       Item_number Item_description Item_price Item quantity
1005   500.78 ShiptoStore test1@email.com 08/12/13 04:33PM  1           Pencils          1          1
                                                            2           Paper            1.5        2
                                                            3           Dog food         10         2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or different variations of key value pairs such as &lt;STRONG&gt;Version1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;txnIds=10010, score=10001, amount=57.59, delivery=ShiptoStore,bililng_email=&lt;A href="mailto:test@email.com" target="_blank"&gt;test@email.com&lt;/A&gt;, trans_date="08/12/13 02:30PM", item_number="1,2,3", item_description="pencils,paper,"dog food"", item_price="1.20,1.50,10.00", item_quantity="1,2,2"&lt;/P&gt;

&lt;P&gt;or &lt;STRONG&gt;Version2&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;txnIds=10011, amount=57.59, delivery=ShiptoStore, bililng_email=&lt;A href="mailto:test@email.com" target="_blank"&gt;test@email.com&lt;/A&gt;, trans_date="08/12/13 02:30PM", item_number=1, item_description=pencils, item_price=1.20, item_quantity=1, item_number=2, item_description=cups, item_price=5.20, item_quantity=5, item_number=3, item_description=shampoo, item_price=7.40, item_quantity=1,&lt;/P&gt;

&lt;P&gt;Version1 works fine except that i would need additional regex to split all of the items in each pair and that might put things out of order if i wanted to compare items and price. Version2 creates the fields but only displays the first value, example item_number would only display the number 1 not 1, 2, 3.&lt;/P&gt;

&lt;P&gt;Any tips or tricks would be appreciated.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:33:24 GMT</pubDate>
    <dc:creator>msmapper</dc:creator>
    <dc:date>2020-09-28T14:33:24Z</dc:date>
    <item>
      <title>Log Message formating question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-Message-formating-question/m-p/32467#M6769</link>
      <description>&lt;P&gt;I am trying create some new logging formats for some new data and I want to ensure it Splunk friendly, so I can do a lot of reporting on the data. The data is basic eCommerce information, such as a single order number and many item details. The problem is when I have multiple items for one order such as,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;order item   item quantity   item description
123   1       5              pencil
      2       3              dog food
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't get all of the values for each category, no matter the logging format that i try such as a table format to use the multikv command. multi&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;order Amount Delivery    Billing_Email    Trans_date       Item_number Item_description Item_price Item quantity
1005   500.78 ShiptoStore test1@email.com 08/12/13 04:33PM  1           Pencils          1          1
                                                            2           Paper            1.5        2
                                                            3           Dog food         10         2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or different variations of key value pairs such as &lt;STRONG&gt;Version1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;txnIds=10010, score=10001, amount=57.59, delivery=ShiptoStore,bililng_email=&lt;A href="mailto:test@email.com" target="_blank"&gt;test@email.com&lt;/A&gt;, trans_date="08/12/13 02:30PM", item_number="1,2,3", item_description="pencils,paper,"dog food"", item_price="1.20,1.50,10.00", item_quantity="1,2,2"&lt;/P&gt;

&lt;P&gt;or &lt;STRONG&gt;Version2&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;txnIds=10011, amount=57.59, delivery=ShiptoStore, bililng_email=&lt;A href="mailto:test@email.com" target="_blank"&gt;test@email.com&lt;/A&gt;, trans_date="08/12/13 02:30PM", item_number=1, item_description=pencils, item_price=1.20, item_quantity=1, item_number=2, item_description=cups, item_price=5.20, item_quantity=5, item_number=3, item_description=shampoo, item_price=7.40, item_quantity=1,&lt;/P&gt;

&lt;P&gt;Version1 works fine except that i would need additional regex to split all of the items in each pair and that might put things out of order if i wanted to compare items and price. Version2 creates the fields but only displays the first value, example item_number would only display the number 1 not 1, 2, 3.&lt;/P&gt;

&lt;P&gt;Any tips or tricks would be appreciated.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-Message-formating-question/m-p/32467#M6769</guid>
      <dc:creator>msmapper</dc:creator>
      <dc:date>2020-09-28T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Log Message formating question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-Message-formating-question/m-p/32468#M6770</link>
      <description>&lt;P&gt;Have you tried the transaction function?&lt;BR /&gt;
You would need a number unique to the transaction that is repeated for each item ordered.&lt;BR /&gt;
If orderid was that field, then you could search for all items with something like this:&lt;BR /&gt;
somesearch | transaction orderid | search orderid=value&lt;BR /&gt;
You can find the transaction documentation here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 23:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-Message-formating-question/m-p/32468#M6770</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-08-12T23:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Log Message formating question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-Message-formating-question/m-p/32469#M6771</link>
      <description>&lt;P&gt;In the keyvalue pairs and use a pipe character for the multivalue fields. I think that will make splunk bring in those fields as mv type automatically.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 11:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-Message-formating-question/m-p/32469#M6771</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2013-08-16T11:10:10Z</dc:date>
    </item>
  </channel>
</rss>

