<?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: Transformation to index events to different index not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294042#M88768</link>
    <description>&lt;P&gt;That's a good question.  If this is a standalone instance, running &lt;CODE&gt;oneshot&lt;/CODE&gt; on the same splunk instance that props/transforms are defined should be sufficient.  But if this server is a universal forwarder props/transforms need to be on the indexer (or heavy forwarder) it is forwarding to.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 19:58:54 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-01-10T19:58:54Z</dc:date>
    <item>
      <title>Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294037#M88763</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Goal&lt;/STRONG&gt;&lt;BR /&gt;
I wish to place some events into a longer living index "staging-boeing-audit" for audit purposes. &lt;BR /&gt;
All other events I wish to continue to be indexed as before. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;What I have tried&lt;/STRONG&gt;&lt;BR /&gt;
I fabricated a simple example to prove this method will work.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;I added a TRANSFORMS-"name" line to my props.conf for a test sourcetype&lt;/LI&gt;
&lt;LI&gt;I added a transforms.conf to regex some events into a new index&lt;/LI&gt;
&lt;LI&gt;I used oneshot to place a test file into Splunk&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;What happened&lt;/STRONG&gt;&lt;BR /&gt;
All data was placed into the original index "marktransform1"&lt;BR /&gt;
No events were matched by the transform and thus the target index "staging-boeing-audit" is empty. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;My props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@myhost:/opt/splunk/etc/system/local# cat props.conf
[mectest]
DATETIME_CONFIG =
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIMESTAMP_FIELDS = info.created
TIME_FORMAT = %Y-%d-%m %H:%M:%S.%3Q
KV_MODE= none
AUTO_KV_JSON= true
category = Custom
description = added via ui
disabled = false
pulldown_type = 1
TRANSFORMS-routing = route_boeing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;My transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@myhost:/opt/splunk/etc/system/local# cat tranforms.conf
[route_boeing]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = staging-boeing-audit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;My oneshot command&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@myhost:/opt/splunk/bin# ./splunk add oneshot ulfs.log -sourcetype mectest -index marktransform1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Sample from ulfs.log file&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@myhost:/opt/splunk/bin# tail -2 ulfs.log
{"context": {}, "info": {"name": "starwood.core", "msg": "Got rate from Starwood", "levelname": "INFO", "levelno": 20, "pathname": "/home/ubuntu/envs/airborne/src/tune/tune/utils.py", "filename": "utils.py", "module": "utils", "exc_info": null, "exc_text": null, "stack_info": null, "lineno": 45, "funcName": "debug", "created": "2018-01-10 17:52:12.253", "msecs": 252.66528129577637, "relativeCreated": 33089947.247982025, "thread": 140501375943792, "threadName": "DummyThread-686", "processName": "MainProcess", "process": 21272, "currency": "DKK", "event_type": "get_rate", "message_type": "starwood", "content_type": "profiling", "time": 0.0021333694458007812, "message": "Got rate from Starwood", "asctime": "2018-01-10 09:52:12,252", "loggername": "starwood.core"}}
{"context": {}, "info": {"name": "tune.memory", "msg": "GC status", "levelname": "DEBUG", "levelno": 10, "pathname": "/home/ubuntu/envs/airborne/src/tune/tune/memory.py", "filename": "memory.py", "module": "memory", "exc_info": null, "exc_text": null, "stack_info": null, "lineno": 49, "funcName": "gc_monitor", "created": "2018-01-10 17:52:33.135", "msecs": 135.5295181274414, "relativeCreated": 33110830.112218857, "thread": 140501389641576, "threadName": "DummyThread-1081", "processName": "MainProcess", "process": 22337, "current_collections_count": [86, 1, 30], "current_frames": 5, "enabled": true, "garbage_count": 0, "gc_stats": [{"collections": 26842, "collected": 5718217, "uncollectable": 0}, {"collections": 2440, "collected": 2079011, "uncollectable": 0}, {"collections": 101, "collected": 1168870, "uncollectable": 0}], "max_rss": 351032, "total_objects": 326350, "message": "GC status", "asctime": "2018-01-10 09:52:33,135", "loggername": "tune.memory"}}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294037#M88763</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2018-01-10T19:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294038#M88764</link>
      <description>&lt;P&gt;Did you restart splunk after making those changes?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294038#M88764</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-10T19:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294039#M88765</link>
      <description>&lt;P&gt;yes I did restart&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294039#M88765</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2018-01-10T19:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294040#M88766</link>
      <description>&lt;P&gt;I have tried other regex as well like REGEX = .* &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294040#M88766</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2018-01-10T19:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294041#M88767</link>
      <description>&lt;P&gt;Did you place your props.conf and transforms.conf on the instance where data parsing happens? It'll either Indexer OR heavy forwarder (whichever comes first in data flow). Also, I believe &lt;CODE&gt;REGEX = .&lt;/CODE&gt; you're using for testing (it'll route all events), when test is done, you'd put actual regex matching required events?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294041#M88767</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-10T19:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294042#M88768</link>
      <description>&lt;P&gt;That's a good question.  If this is a standalone instance, running &lt;CODE&gt;oneshot&lt;/CODE&gt; on the same splunk instance that props/transforms are defined should be sufficient.  But if this server is a universal forwarder props/transforms need to be on the indexer (or heavy forwarder) it is forwarding to.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294042#M88768</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-10T19:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294043#M88769</link>
      <description>&lt;P&gt;Is there the possibility that you have another &lt;CODE&gt;route_boeing&lt;/CODE&gt; in another &lt;CODE&gt;transforms.conf&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294043#M88769</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-01-10T20:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294044#M88770</link>
      <description>&lt;P&gt;I am testing this on my splunk indexer/search head not on an instance with a forwarder sending logs. &lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 02:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294044#M88770</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2018-01-11T02:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294045#M88771</link>
      <description>&lt;P&gt;I am aware my regex matches all events but I wanted to make sure the problem was not in the regex itself and .* and . were the two dumbest simplest ways to try it I could think of. &lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 02:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294045#M88771</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2018-01-11T02:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294046#M88772</link>
      <description>&lt;P&gt;no, not possible&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 02:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294046#M88772</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2018-01-11T02:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294047#M88773</link>
      <description>&lt;P&gt;Paste the output of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./bin/splunk btool transforms list route_boeing --debug

./bin/splunk btool props list mectest --debug
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jan 2018 02:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294047#M88773</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-11T02:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294048#M88774</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;There is a typo in the transforms file name:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; root@myhost:/opt/splunk/etc/system/local# cat tranforms.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It should be: transforms.conf&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 12:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294048#M88774</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2018-01-11T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation to index events to different index not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294049#M88775</link>
      <description>&lt;P&gt;Good catch.  I suggest converting this to an answer so that if it helps the poster find the root cause it can be accepted.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 15:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transformation-to-index-events-to-different-index-not-working/m-p/294049#M88775</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-11T15:18:11Z</dc:date>
    </item>
  </channel>
</rss>

