12-000-000-222
for the above IP address, i want to change it to 12.000.000.222. pls help.
@shivac - Looks like you have a few possible solutions to your question. If one of them provided a working solution, please don't forget to click "Accept" below the best answer to resolve this post. If you still need help, please leave a comment. Don’t forget to upvote anything that was helpful too. Thanks!
FYI, Options, other than sed
are,
....| eval YourIPField=replace(YourIPField,"-",".")
not so good method
...| replace"*-*-*-*" with "*.*.*.*" in YourIPField
Try this,
your base search .. | rex mode=sed field=<your_field> "s/-/./g"
Sample:
|stats c | eval field="12-000-000-222" | table field | rex mode=sed field=field "s/-/./g"
the sedcmd syntax is:
s/-/./g
Will that work for you?